NVIDIAGameWorks / FleX

Other
668 stars 100 forks source link

Unresolved external NvFlexGetSprings with CUDA #29

Open SaulHP91 opened 6 years ago

SaulHP91 commented 6 years ago

I added a line to the flex demo to get the springs just after having set them, inside main.cpp inside "Init" function

NvFlexSetSprings(g_flex, g_buffers->springIndices.buffer, g_buffers->springLengths.buffer, g_buffers->springStiffness.buffer, g_buffers->springLengths.size()); NvFlexGetSprings(g_flex, g_buffers->springIndices.buffer, g_buffers->springLengths.buffer, g_buffers->springStiffness.buffer, g_buffers->springLengths.size());

D3D version works fine, but with CUDA version here is the compiler error log:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol NvFlexGetSprings referenced in function "void __cdecl Init(int,bool)" (?Init@@YAXH_N@Z) flexDemoCUDA C:\dev\flex-110\flex\demo\compiler\vc14win64\main.obj 1

mmacklin commented 6 years ago

Thanks for the report. We will address this in the next release.