Page 1 of 1

Run Fail : custom actuator example

Posted: Thu Apr 19, 2018 9:33 pm
by kim91001
Hello
I try to compile and run project "CustomActuatorExample" in APIExample, OpenSim.
However, It failed to run project with message.
"Exception in toyLeg_example : string too long"

What can I do to fix this problem?

My environment is Vs2017 x64, OpenSim 4.

++
I try to do with OpenSim 3.3 and It does not work too.
In compiling process, it failed with

1>StaticOptimization2.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl OpenSim::StaticOptimizationTarget2::~StaticOptimizationTarget2(void)" (__imp_??1StaticOptimizationTarget2@OpenSim@@UEAA@XZ) referenced in function "protected: virtual int __cdecl OpenSim::StaticOptimization2::record(class SimTK::State const &)" (?record@StaticOptimization2@OpenSim@@MEAAHAEBVState@SimTK@@@Z)
1>StaticOptimizationTarget2.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static double const OpenSim::StaticOptimizationTarget2::SMALLDX" (__imp_?SMALLDX@StaticOptimizationTarget2@OpenSim@@2NB) referenced in function "public: void __cdecl OpenSim::StaticOptimizationTarget2::setDX(int,double)" (?setDX@StaticOptimizationTarget2@OpenSim@@QEAAXHN@Z)
1>StaticOptimizationTarget2.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const OpenSim::StaticOptimizationTarget2::`vftable'" (__imp_??_7StaticOptimizationTarget2@OpenSim@@6B@) referenced in function "public: __cdecl OpenSim::StaticOptimizationTarget2::StaticOptimizationTarget2(class SimTK::State const &,class OpenSim::Model *,int,int,bool)" (??0StaticOptimizationTarget2@OpenSim@@QEAA@AEBVState@SimTK@@PEAVModel@1@HH_N@Z)

How can I fix that problem?
Thank you