hi!
i installed SimTKcore_RelWithDebInfo.exe (50737 kB) in windows xp,my platform is vc2005,i try to compile examples ExampleKneeJoint.cpp in SimTKExamples1.5Updated.zip,but got the following errors:
simtk_test.obj : error LNK2019: unresolved external symbol "public: static class SimTK::Stage const SimTK::Stage::Acceleration" (?Acceleration@Stage@SimTK@@2V12@B),referenced in function _main
if i comment out the following line:
system.realize(state, Stage::Acceleration);
then it's ok.
Other examples like ExampleDynamicWalker.cpp has the same phenomenon. how can i get around of it?
failed to compile example
RE: failed to compile example
Hi Chen,
It sounds like you may not be linking to all the libraries. Make sure you are using the following library names:
SimTKmolmodel.lib
SimTKsimbody.lib
SimTKmath.lib
SimTKcpodes.lib
SimTKcommon.lib
SimTKlapack.lib
SimTKsimbody_aux.lib
I believe there's an error in the notes that list some of the library names with an "_d" in them.
Joy
It sounds like you may not be linking to all the libraries. Make sure you are using the following library names:
SimTKmolmodel.lib
SimTKsimbody.lib
SimTKmath.lib
SimTKcpodes.lib
SimTKcommon.lib
SimTKlapack.lib
SimTKsimbody_aux.lib
I believe there's an error in the notes that list some of the library names with an "_d" in them.
Joy
RE: failed to compile example
hi joy,
i checked and find i already linking the above librarys. the following is the setting of vc2005:
linking:
/OUT:"F:\zju\source_code\simTK_test\simtk_test\Debug\simtk_test.exe" /NOLOGO /LIBPATH:"G:\simTK\core\lib" /LIBPATH:"G:\simTK\core\bin" /MANIFEST /MANIFESTFILE:"Debug\simtk_test.exe.intermediate.manifest" /ERRORREPORT:PROMPT SimTKmolmodel.lib SimTKsimbody.lib SimTKmath.lib SimTKcpodes.lib SimTKcommon.lib simTKlapack.lib SimTKsimbody_aux.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
compile:
/O2 /I "G:\simTK\core\include" /I "G:\simTK\core\include\molmodel\internal" /FD /EHsc /MT /Fo"Debug\\" /Fd"Debug\vc80.pdb" /nologo /c /TP /errorReport:prompt
and i find these librarys in G:\simTK\core\lib.
so what's the problem?
thanks.
i checked and find i already linking the above librarys. the following is the setting of vc2005:
linking:
/OUT:"F:\zju\source_code\simTK_test\simtk_test\Debug\simtk_test.exe" /NOLOGO /LIBPATH:"G:\simTK\core\lib" /LIBPATH:"G:\simTK\core\bin" /MANIFEST /MANIFESTFILE:"Debug\simtk_test.exe.intermediate.manifest" /ERRORREPORT:PROMPT SimTKmolmodel.lib SimTKsimbody.lib SimTKmath.lib SimTKcpodes.lib SimTKcommon.lib simTKlapack.lib SimTKsimbody_aux.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
compile:
/O2 /I "G:\simTK\core\include" /I "G:\simTK\core\include\molmodel\internal" /FD /EHsc /MT /Fo"Debug\\" /Fd"Debug\vc80.pdb" /nologo /c /TP /errorReport:prompt
and i find these librarys in G:\simTK\core\lib.
so what's the problem?
thanks.
RE: failed to compile example
Hi,Joy!
I setup a new win32 project. I follow the step one by one in the notes exactlly and now it is ok!
Thanks.
I setup a new win32 project. I follow the step one by one in the notes exactlly and now it is ok!
Thanks.