[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tolua & DLL problems - Thanks!
- From: lemkef@...
- Date: Tue, 21 Nov 2000 17:08:49 -0000
--- In lua-l@egroups.com, 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
C++ based.
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
code
> without linking in the lib/dll with it that contains the pSink
> function).
> ===
> Jeroen