Advertisement

LUA and C++ linking problem

Started by January 29, 2003 08:38 AM
5 comments, last by nomore_pf 21 years, 9 months ago
Hi people, I wanted to use LUA in my mulithreaded 3d editor. LUA got compiled with "multithread-dll debug" code generation. I''ve exlcuded libc.lib from the editor''s linking libraries but I''m still getting these errors:
--------------------Konfiguration: TheTool - Win32 Debug--------------------
Linker-Vorgang läuft...
lualib.lib(llex.obj) : error LNK2001: Nichtaufgeloestes externes Symbol __pctype
lualib.lib(lobject.obj) : error LNK2001: Nichtaufgeloestes externes Symbol ___mb_cur_max
lualib.lib(liolib.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _errno
distribution\TheTool.exe : fatal error LNK1120: 3 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.

TheTool.exe - 12 Fehler, 0 Warnung(en)


does anyone know an answer to this problem ??

bye, alexander bierbrauer    </pre> 

     
www.polyfrag.com
You must put the lua include in extern

extern "C" {
#include <lua.h>
}
Advertisement
I''ve did the include in this way !

...#ifndef CLUAINTERPRETER_H#define CLUAINTERPRETER_H#include <stdlib.h>#include <string>extern "C"{#include <lua.h>#include <lualib.h>}class cLUAInterpreter... 


some more suggestions ??

www.polyfrag.com
surely you''ve included the lua library, right?

-eldee
;another space monkey;
[ Forced Evolution Studios ]

::evolve::

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!

-eldee;another space monkey;[ Forced Evolution Studios ]
Have you compiled the Lua library yourself, or gotten the binary? The former is much better, and easier to catch errors with.

Don''t listen to me. I''ve had too much coffee.
I had the same problem as you. What I finally did is simply include the source of lua and compile everything with my project. No more problems!
Advertisement
I''ve got it working.

1) Download the newest source distribution
2) compile the libs as "multithreaded dll debug"
3) include them in your lib and it werks


bye, alex

Check out TheTool: thetool.polyfrag.com
www.polyfrag.com

This topic is closed to new replies.

Advertisement