Hi everyone,
I wrote a code in C++ for development of API in Visual Studio 2017 for OpenSim. But on building the code, I am encountering a error stating as follows:
Severity Code Description
Error LNK2019 unresolved external symbol main referenced in function
"int __cdecl __scrt_common_main_seh(void)" (?
__scrt_common_main_seh@@YAHXZ)
And
Severity Code Description
Error LNK1120 1 unresolved externals
I even tried building the code of Thelen Muscle Class from the source file of OpenSim in visual studio 2017 in order to debug it and still getting the same set of error. Kindly help me in this regard.
Thanks and Regards
Error while building C++ code in MS Visual Studio for API Development
- Arnab Sikidar
- Posts: 9
- Joined: Thu Sep 21, 2017 1:53 am
Re: Error while building C++ code in MS Visual Studio for API Development
There seems to be some posts on this in Stack Overflow
- Arnab Sikidar
- Posts: 9
- Joined: Thu Sep 21, 2017 1:53 am
Re: Error while building C++ code in MS Visual Studio for API Development
Hello James,
Thanks for the prompt reply, however, there is no main() in Thelen Muscle Class of OpenSim (from the source code) and is same for my code too. I found a link in SimTK addressing the error but it was not much of help. Here is the link that I referred.
viewtopicPhpbb.php?f=91&t=4671&p=0&start=0&view=
Kindly help me in this regard.
Thanks
Arnab
Thanks for the prompt reply, however, there is no main() in Thelen Muscle Class of OpenSim (from the source code) and is same for my code too. I found a link in SimTK addressing the error but it was not much of help. Here is the link that I referred.
viewtopicPhpbb.php?f=91&t=4671&p=0&start=0&view=
Kindly help me in this regard.
Thanks
Arnab
- Arnab Sikidar
- Posts: 9
- Joined: Thu Sep 21, 2017 1:53 am
Re: Error while building C++ code in MS Visual Studio for API Development
Thanks James. I could solve the issue. It was because of 64 bit usage of OpenSim libraries.
Regards
Arnab