vote up 0 vote down star

I have successfully compiled lua in my mac. It works. It runs. Now, I want to mix it with C++ in XCode. 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?

flag

If you haven't already, check out rasterbar.com/products/luabind.html - it may help you integrate your C++ and Lua code. – John Zwinck Oct 18 at 23:20

1 Answer

vote up 2 vote down check

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
link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.