lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] wrote:
> Hello all.
> I'm using tolua to try and wrap a DLL.
> 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