I have a very specific problem when trying to compile a 'sample' project for the Orbiter space flight simulator. I'm trying to compile the sample for the space shuttle 'Atlantis' using the preview version of Visual Studio 2019, and I'm getting an error like:
LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall VESSEL2::VESSEL2(class VESSEL2 &&)" (__imp_??0VESSEL2@@QAE@$$QAV0@@Z) referenced in function "public: __thiscall Atlantis_SRB::Atlantis_SRB(class Atlantis_SRB &&)" (??0Atlantis_SRB@@QAE@$$QAV0@@Z)
This is happening in the Atlantis_SRB
project. My code is located at:
C:\Orbiter2016\Orbitersdk\samples\Atlantis\
I have a lot of experience in software engineering, but I'm a C++ noob. I've looked at general help for this error, so I understand that there is something that needs to be linked, but I'm not sure what, or how to do it.
I looked at this question on the Orbiter forum:
https://www.orbiter-forum.com/showthread.php?t=24247
It suggests checking the following under project > properties:
Linker - Input - Additional libraries
and
Linker - Advanced - Library search paths
When I check under the 1st one, I have the following under Linker > Input > Additional Dependencies:
orbiter.lib;orbitersdk.lib;%(AdditionalDependencies)
The 2nd location (Linker - Advanced - Library search paths) doesn't exist.
I'm used to C# reference errors when dlls are missing from 'references' and know how to solve them quickly, but I'm not sure what to do with this type of C++ issue.
How do I identify what the specific problem is, and what do I need to link, where (and how?!)