nickgillian / grt

gesture recognition toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static compile library on windows still require dll?

Ehekatl opened this issue · comments

The library it's not fully static....
I followed the instruction in build, also tried turn build share lib off in cmake

Ah...actually, build with -DBUILD_SHARED_LIB=OFF can generate the static lib
However I get tons of unresolved external symbol error like: error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl GRT::VectorFloat::~VectorFloat(void)" (__imp_??1VectorFloat@GRT@@UEAA@XZ) referenced in function "public: __cdecl GRT::GaussNeuron::~GaussNeuron(void)" (??1GaussNeuron@GRT@@QEAA@XZ)

When I using dll + lib in my unreal project, my application crash constantly and get Stack cookie instrumentation code detected a stack-based buffer overrun

@nickgillian Could you provide some instruction on how to make static lib work on windows?
Really looking forward to use this library and much appreciate.

I've been running into the same Stack cookie error. Would you happen to have figured this out?