[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Setting up Lua for Visual C++ 6
- From: Asko Kauppi <Asko.Kauppi@...>
- Date: Tue, 13 Aug 2002 18:32:54 +0300
I get that same
"LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs;
use /NODEFAULTLIB:library"
warning when I compile debug-enabled code with a non-debug Lua library.
Haven't bothered to find where to switch it off (does someone know?) since
it doesn't trouble that much.
-asko
> -----Original Message-----
> From: frcecin@terra.com.br [SMTP:frcecin@terra.com.br]
> Sent: Tuesday, August 13, 2002 5:22 PM
> To: Multiple recipients of list
> Subject: Re: Setting up Lua for Visual C++ 6
>
> On 13 Aug 2002 at 16:59, Eero Pajarre wrote:
>
> > Looks like you got bitten by the C++ name mangling.
> >
> > Try the following change:
> > ----------
> > extern "C" {
> > #include <lua.h>
> > }
> >
> > int main() {
> > lua_State *s = lua_open(256);
> > return 0;
> > }
> > ------------
>
> It worked! But now there's this strange warning:
>
> LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other
> libs; use
> /NODEFAULTLIB:library
>
> But I think it is unharmful, the program compiled and ran fine.
>
> > If this doesn't help, then it is time to
> > check other things. I personally include lua into
> > my project by adding the source files to to the VC
> > project. Because of their small size, I have
> > never felt any need to use a .lib for Lua.
> >
> > Eero
>
> I will try that too.
>
> Thanks!
>
> - Fabio
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.