开发者

compiling Lua source with host C++ application

开发者 https://www.devze.com 2023-03-18 00:07 出处:网络
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 an

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

开发者_JAVA百科Thanks!


  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.


You need to look into Binding Code to Lua.

0

精彩评论

暂无评论...
验证码 换一张
取 消