C++ Question Compile Error with OrbiterSound5.0?

Mr Martian

Orbinaut/Addon dev/Donator
Addon Developer
Donator
Joined
Jun 6, 2012
Messages
288
Reaction score
67
Points
28
Location
Sydney, Australia, Earth, Sol
Website
www.orbithangar.com
Hi All,

Wondering if anyone else encountered this issue.

I am using Visual C++ 2010, and cannot compile my project since adding the libraries for OrbiterSound5.0. I eng up with a string of errors I don't fully understand, I think relating to how Dansteph's libraries were compiled, or another such compatibility issue.

Has anyone else encountered this? I have posted my errors below:

Code:
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1600' in MyVessel.obj
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _sprintf already defined in OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj)
1>     Creating library ..\..\..\..\..\Simulators\Orbiter\orbiter2016\Modules\MyVessel.lib and object ..\..\..\..\..\Simulators\Orbiter\orbiter2016\Modules\MyVessel.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2019: unresolved external symbol ___report_rangecheckfailure referenced in function "int __cdecl ConnectToOrbiterSoundDLL(void *)" (?ConnectToOrbiterSoundDLL@@YAHPAX@Z)
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2019: unresolved external symbol ___stdio_common_vfprintf referenced in function __vfprintf_l
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2019: unresolved external symbol ___stdio_common_vsprintf referenced in function __vsnprintf_l
1>..\..\..\..\..\Simulators\Orbiter\orbiter2016\Modules\MyVessel.dll : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I would say this may have something to do with my compiler settings, but I am not sure.

Thanks in advacnce!
 

Orbifan

Member
Joined
Aug 2, 2023
Messages
13
Reaction score
21
Points
18
Location
?
I also have some error in my addon because of this. These are LNK 2038 and LNK 1319.
 

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
Points
43
Location
Happy Wherever
Hi All,

Wondering if anyone else encountered this issue.

I am using Visual C++ 2010, and cannot compile my project since adding the libraries for OrbiterSound5.0. I eng up with a string of errors I don't fully understand, I think relating to how Dansteph's libraries were compiled, or another such compatibility issue.

Has anyone else encountered this? I have posted my errors below:

Code:
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1900' doesn't match value '1600' in MyVessel.obj
1>MSVCRTD.lib(MSVCR100D.dll) : error LNK2005: _sprintf already defined in OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj)
1>     Creating library ..\..\..\..\..\Simulators\Orbiter\orbiter2016\Modules\MyVessel.lib and object ..\..\..\..\..\Simulators\Orbiter\orbiter2016\Modules\MyVessel.exp
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2019: unresolved external symbol ___report_rangecheckfailure referenced in function "int __cdecl ConnectToOrbiterSoundDLL(void *)" (?ConnectToOrbiterSoundDLL@@YAHPAX@Z)
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2019: unresolved external symbol ___stdio_common_vfprintf referenced in function __vfprintf_l
1>OrbiterSoundSDK50d.lib(OrbiterSoundSDK50.obj) : error LNK2019: unresolved external symbol ___stdio_common_vsprintf referenced in function __vsnprintf_l
1>..\..\..\..\..\Simulators\Orbiter\orbiter2016\Modules\MyVessel.dll : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I would say this may have something to do with my compiler settings, but I am not sure.

Thanks in advacnce!
Hi Mr Martian,
You're not trying to compile in OpenOrbiter are you?
Just asking cos of what I encountered here
 
Top