lua-users home
lua-l archive

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


I use Visual C++ 6.0.
I have the following code in my source :

extern "C" 
{
#include "lua.h"
#include <lualib.h>
#include <lauxlib.h>
}

And the library modules as follows :
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
corelib.lib standardlib.lib 

Any ideas ?

Thanks,

Sindharta

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Robert
Anderberg
Sent: 20 Februari 2004 0:28
To: Lua list
Subject: Re: RTC Problem


Hi,

what platform/compiler are you using?

can you give me some more info about what exactly your project setup is?

maybe it's to do with not wrapping your lua #includes with extern "C" {}
in a 
c++ project?

Rob

On Thursday 19 February 2004 15:36, Sindharta Tanuwijaya wrote:
> Hi,
>
> I am a newbie here and I am having error when I try to build a simple 
> app using Lua. It's linker error, and I will put the error messages 
> below :
>
> corelib.lib(lundump.obj) : error LNK2001: unresolved external symbol 
> __RTC_CheckEsp
> corelib.lib(lcode.obj) : error LNK2001: unresolved external symbol 
> __RTC_CheckEsp
> standardlib.lib(lauxlib.obj) : error LNK2001: unresolved external 
> symbol __RTC_CheckEsp
> standardlib.lib(lbaselib.obj) : error LNK2001: unresolved external 
> symbol __RTC_CheckEsp
>
> It's only some of them (there are many more like that, all about RTC 
> stuff). Can anyone tell me what I did wrong ?
>
> Thanks,
>
> Sindharta