RE: HUGE_VAL issues linking a C++ program with Lua compiled as 'C'
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: RE: HUGE_VAL issues linking a C++ program with Lua compiled as 'C'
- From: "Tom Miles" <Tom@...>
- Date: 2007年8月28日 17:10:46 +0100
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!
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_pushnumber(L,
HUGE_VAL);
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.
--
Regards,
Ryan
RJP Computing
DISCLAIMER
This email is sent by The Creative
Assembly Limited company No. 03425917, registered in England & Wales
registered office 27 Great West Road, Middlesex, TW8 9BW, England. The contents
of this e-mail and any attachments are confidential to the intended recipient
and may also be legally privileged. Unless you are the named addressee (or
authorised to receive for the addressee) of this email you may not copy,
disclose or distribute it to anyone else. If you have received this email in
error, please notify us immediately by e-mail on postmaster@creative-assembly.co.uk
and then delete the email and any copies. The Creative Assembly Limited have
made all reasonable efforts to ensure that this e-mail and any attached
documents or software are free from software viruses, but it is the recipient's
responsibility to confirm this.