Hi all, I am a beginner to Mujoco Pro, I can run the simulate ../model/humanoid.xml from the bin folder using command prompt in windows and everything works fine. For current stage, My goal is: compile the sample code by VS2013 in Windows. But I got the 8 LNK2019 errors like the following: test_0623.obj : error LNK2019: unresolved external symbol __imp__mj_activate referenced in function _main My procedure to build a project is: Build a new win32 console application project called My_Project in VS2013 move all the header files, mjkey.txt, and one of the source files to My_Project\My_Project folder build a lib folder under My_Project folder, and copy the mujoco131.lib and glfw3.lib and corresponding .dll files to it. link the .lib files by modifying: Configuration Properties => Linker => Input => Additional dependencies (and Configuration Properties => Linker => General => Additional Library directories) Force the DLLs to get copied to the output directory by: input XCOPY "$(SolutionDir)lib\*.DLL" "$(TargetDir)" /D /K /Y into Configuration Properties -> Build Events -> Post-Build Event -> Command Line add the header files and source files to the solution. Build solution. Did I miss something? Is this the right way to use the package in Windows? I think compiling stuff from command line is similar with working from Visual Studio IDE. I have been stuck in this step for several days. I appreciate if someone can help me with this. Thanks alot! Best regards,
Another user had a similar issue recently, and it turned out to be caused by using a 32-bit VS build environment with the 64-bit MuJoCo Library. See this forum: http://www.mujoco.org/forum/index.php?threads/linker-error-unresolved-external-symbol.3343/
Thank you so much! Issue solved: the problem is exactly as what you mentioned. I changed configuration by following: https://msdn.microsoft.com/en-us/library/9yb4317s.aspx. Everything works now. Best regards,