[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: HUGE_VAL issues linking a C++ program with Lua compiled as 'C'
- From: "RJP Computing" <rjpcomputing@...>
- Date: Tue, 28 Aug 2007 10:44:25 -0400
I am having a lot of problems building a program with Visual C++ 8.0 (VS2005) because I am compiling Lua as 'C' and my application is written in C++. I am building Lua as a static library. I am using Windows XP SP2 and Lua
5.1.2. Now I have searched and searched to get some help and I can't figure out how to get the settings correct to actually link. Here is the error message:
unresolved external symbol __HUGE referenced in function _luaopen_math
It is referring to HUGE_VAL in the 'lmathlib.c'
lua_setfield(L, -2, "huge");
I haave tried compiling it myself in the solution as well as using the LuaBinaries and I get the same result.