[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: tolua & DLL problems - Thanks!
- From: lemkef@...
- Date: Tue, 21 Nov 2000 17:08:49 -0000
--- In firstname.lastname@example.org, Jeroen Janssen <japj@d...> wrote:
> lemkef@t... wrote:
> > Hello all.
> > I'm using tolua to try and wrap a DLL.
Ah! found the problem. After seeing the replies I found I
unintentionally had the header file for the DLL in an extern "C"
block. Must have confused the compiler/linker considering the dll is
Thanks a bunch!
> > The problem is it keeps giving me link errors along the lines of:
> > ScriptedObject.obj : error LNK2001: unresolved external symbol
> > __imp__pSink
> > the actual header file has it listed as:
> > PARTICLEDLL_API void pSink(bool kill_inside, PDomainEnum dtype);
> > with PARTICLEDLL_API being:
> > #define PARTICLEDLL_API __declspec(dllimport)
> are you linking the library/dll that contains pSink?
> (this linker error sounds like you're linking the tolua generated
> without linking in the lib/dll with it that contains the pSink