Atherton Wing
Atherton Wing

Reputation: 23

compiling Lua source with host C++ application

I'll be quick:

I have a C++ application that embeds Lua. Until now I have just used a pre-compiled lib that I link to the app. I would like to make a new approach by including the Lua source code and compile from scratch. What all would I need to do?

I'm running gcc v 4.4.3 in ubuntu 11.4

Thanks!

Upvotes: 2

Views: 560

Answers (2)

Yann Ramin
Yann Ramin

Reputation: 33177

  1. Include the lua source code as included in the library - leave out the .c files which contain a main()
  2. Make the proper #define for your operating system (see the Lua makefile for which ones to use)
  3. Compile.

Upvotes: 3

user195488
user195488

Reputation:

You need to look into Binding Code to Lua.

Upvotes: 0

Related Questions