I have successfully compiled lua in my mac. It works. It runs. Now, I want to mix it with C++ in XC开发者_运维知识库ode. So I looked up in the Linked Library, the usual place to add more libraries in XCode. But of course, lua isn't there. Now, how do I tell XCode the existence of lua so that the program can include lua.h correctly?
Up to you :
- use the "Header Search Path" and "Library Search Paths" in the properties to add the location of Lua headers and liblua.a
- OR just copy the Lua headers and liblua.a in your project directory, then add them to your project
https://github.com/breinhart/Lua-In-Xcode
精彩评论