|
You could define HUGE_VAL as FLT_MAX or DBL_MAX depending on the floating point precision you are using.
-----Original
Message-----
I had exactly the same problem as you, but i'm afraid to say that to get around it I disabled that bit of functionality in the lua math library. Dirty, but it worked!
From:
lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On
Behalf Of RJP Computing 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
lua_pushnumber(L,
HUGE_VAL);
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. administrator@cdsrail.com
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.cdsrail.com **********************************************************************
|