C++ Opensim API problem
Posted: Thu Oct 29, 2020 5:14 pm
Dear OpenSim experts:
I am testing the C++ OpenSim API, and trying an example of a simple arm model which is developed using C++. I have attached the C++ code in attachment for your reference. However, when I run the model in Visual Studio Developer Command Prompt, it is not working and gives the following error:
SimpleArm.cpp(1): fatal error C1083: Cannot open include file: 'OpenSim/OpenSim.h': No such file or directory
I can find the OpenSim.h file in my installation directory (eg. C:\OpenSim 4.1\sdk\include\OpenSim), I am not sure why it can not find the OpenSim.h file. Could you please tell me how to solve this problem? Thank you very much in advance.
Best regards
Xijin
I am testing the C++ OpenSim API, and trying an example of a simple arm model which is developed using C++. I have attached the C++ code in attachment for your reference. However, when I run the model in Visual Studio Developer Command Prompt, it is not working and gives the following error:
SimpleArm.cpp(1): fatal error C1083: Cannot open include file: 'OpenSim/OpenSim.h': No such file or directory
I can find the OpenSim.h file in my installation directory (eg. C:\OpenSim 4.1\sdk\include\OpenSim), I am not sure why it can not find the OpenSim.h file. Could you please tell me how to solve this problem? Thank you very much in advance.
Best regards
Xijin