I'm trying to run the examples for the C++ API.
I am able to build the examples without error. With the minimum example (ExampleMain, `tugPfWar_model.osim`), the executable runs without error.
However, with the other examples I've tried so far (SimpleOptimizationExample, and OptimizationExample_Arm26), I can build without error, but trying to run the executable results in the error "The procedure entry point XXXX could not be located in the dynamic link library osimSimulation.dll" (where XXXX is variable).
Any help here is appreciated
Windows 7 64 bit, Visual Studio 2017, OpenSim 4.2
Procedure entry point error for osimSimulation.dll
- Delyle Polet
- Posts: 12
- Joined: Mon Nov 02, 2020 12:05 pm
- Ayman Habib
- Posts: 2252
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Procedure entry point error for osimSimulation.dll
Hello,
Procedure entry point error is an indication of the code building against one API but run with a different version of the API (from different dlls). I suggest you make sure you use exactly one version of the OpenSim API for building your code and also on the PATH to be loaded at runtime.
For example, if there's a new function introduced in 4.2 and you build against 4.2, then at runtime version 4.1 dlls are loaded then the method will not be found and you will get the error described.
Hope this helps,
-Ayman
Procedure entry point error is an indication of the code building against one API but run with a different version of the API (from different dlls). I suggest you make sure you use exactly one version of the OpenSim API for building your code and also on the PATH to be loaded at runtime.
For example, if there's a new function introduced in 4.2 and you build against 4.2, then at runtime version 4.1 dlls are loaded then the method will not be found and you will get the error described.
Hope this helps,
-Ayman
- Delyle Polet
- Posts: 12
- Joined: Mon Nov 02, 2020 12:05 pm
Re: Procedure entry point error for osimSimulation.dll
Thanks Ayman, it turned out I had removed one instance of a previous OpenSim version from my path, but there was another one hiding! Thanks again.
Delyle
Delyle