Jump to content
  • Advertisement
Sign in to follow this  
JeffNiko

Need help with LUA / VS2008

This topic is 3682 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am having trouble trying to use LUA in my VS2008 C++ application. I need C++ to call LUA functions and LUA to call C++ functions. I tried downloading the static .lib and header for LUA 5.1.3 from LuaBinaries, but it's compiled for VS2005, and I could not get it to link properly in VS2008 (luaopen_math used undefined reference _HUGE). I also tried downloading the source and was able to create a project, and get it to compile and create lua.exe and luac.exe, but Im not sure how to go from that point (an EXE) to using lua_dofile() and the other functions in my c++ code. Does anyone have a LUA 5.1.3 / VS2008 static library project, or even just the .lib and headers?

Share this post


Link to post
Share on other sites
Advertisement
Firstly, it is "Lua" not "LUA"

Secondly, you can't go from teh lua.exe or luac.exe to using it in your own app; you need to build a static library (or a DLL one) to do that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!