lua-users home
lua-l archive

RE: Linking lua lib with Microsoft VS2005

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


“Error” or “Warning” ? I get the “unresolved typedef” on “lua_State” – but that’s only a “Warning”. Things work fine.

--Ken

What is this Ming Vase thing?

From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Remo Dentato
Sent: Saturday, December 20, 2008 4:58 PM
To: lua@bazar2.conectiva.com.br
Subject: Linking lua lib with Microsoft VS2005

Hi Everybody.

On Windows I usually use mingw to compile and link Lua but this time I have to use Visual Studio 2005.

I can easily compile the lua51.DLL and the 2 executables (lua.exe and luac.exe) with the luavs.bat script in the etc directory of the distribution package. Everything works fine, the interpreter runs and so on.

I can also modify that script to compile Lua as a static library lua51.lib and link it to lua.exe and luac.exe. Again everything works fine.

The problem is when I try to link the library to the larger program I'm working on. I get the LNK2019 error (symbol unresolved).

I tried both with the DLL and with the static .lib but I had no success.

I checked with dumpbin and the symbols are in the library. Everything has been compiled as C using the /Tc and /TC switches.

I don't know where else to look! Does anyone have a suggestion?? Is there any flag I should use that I might have missed?

Thanks,

Remo


check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages


AltStyle によって変換されたページ (->オリジナル) /