lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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