1

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?

1

2 Answers 2

8

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
Sign up to request clarification or add additional context in comments.

Comments

-1

https://github.com/breinhart/Lua-In-Xcode

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.