Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nomore_pf

LUA and C++ linking problem

This topic is 5649 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)
[code]

does anyone know an answer to this problem ??

bye, alexander bierbrauer    

Share this post


Link to post
Share on other sites
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 ??

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!