• ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

VS2005

Now I get this:
Linking...
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
Creating library .\..\..\..\Modules/ShuttlePB.lib and object .\..\..\..\Modules/ShuttlePB.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

I have the msvcrt.lib to ignore
f_screen1m_b94802d.jpg

.\release/UMmuShuttlePB.dll : fatal error LNK1169: one or more multiply defined symbols found
 
Now I get this:
Linking...
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
Creating library .......Modules/ShuttlePB.lib and object .......Modules/ShuttlePB.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

I have the msvcrt.lib to ignore

.release/UMmuShuttlePB.dll : fatal error LNK1169: one or more multiply defined symbols found

I wouldnt know for sure, but that looks like your redefining the (=)operator.

Also, I remember someone telling me that you didnot need to include the kernel32.lib, you could try that.
 
Actually, this error is created if you mix two kinds of run-time libraries. Make sure all projects are linked "single threaded/DLL" or "multithreaded/DLL"
 
No change. I have no changes in the code. Just trying to compile the example.
 
Yes, but your settings are not compatible.
 
I redid all my setting. But I still get this:
------ Build started: Project: ShuttlePB, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\..\lib\Orbiter.lib'
Build log was saved at "file://c:\orbiter\Orbitersdk\samples\umme example\umme example\Debug\BuildLog.htm"
ShuttlePB - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Here the path the libraries:
"..\..\lib\Orbiter.lib" "..\..\lib\Orbitersdk.lib" ".\UMmuSDK.lib"
 
Ah that. That error is trivial.
 
It may be Trival but it is stoping it from compiling.
not sure as path seems right
 
Trivial in that case means: You should be able to fix it yourself, without other people doing the thinking for you.

not sure as path seems right

Do you KNOW that the path is right? :dry:
 
It looks like the path is right for the library. I will try again from the start following the article on setting it up.
 
I redid the setting and no change. I still get this:
Linking...
LINK : fatal error LNK1181: cannot open input file '..\..\lib\Orbiter.lib'
I changed the config to release.
in the General here are the include


f_screen1am_c53f5ed.jpg

and in the linker the lib

f_screen1bm_99c2d65.gif
 
I think I repeat myself what I tell you, that your library paths are obviously not correct, though you keep on believing they are.

Remember that you use relative paths ("../../lib/Orbiter.lib") for accessing the libraries. Might be the right moment to meditate.
 
Ok here is from the OrbiterWiki. I have it set up shown. I have tried the relative path also
Library path

Add the SDK library path for both the Platform SDK and the Orbiter SDK to the linker library path. The Platform SDK path default is C:\Program Files\Microsoft Platform SDK\lib. The Orbiter SDK default is C:\Orbiter\Orbitersdk\lib
 
On the libraries. I go to the window where they are set up and follow the directory til I get to the lib. The file is in there also.
 
I started again from scratch and now I get this. ------ Build started: Project: ShuttlePB, Configuration: Release Win32 ------
Compiling...
UMmuExample.cpp
ShuttlePB.cpp
Generating Code...
Linking...
LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'
Build log was saved at "file://c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\BuildLog.htm"
ShuttlePB - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have it set to ignore:
f_screen1cm_c51e838.gif
 
This is the whole output file:
[SIZE=+3]Build Log [/SIZE] Build started: Project: ShuttlePB, Configuration: Release|Win32


[SIZE=+2]Command Lines [/SIZE] Creating temporary file "c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00000831041608.rsp" with contents
[
/OUT:".\release/UMmuShuttlePB.dll" /INCREMENTAL:NO /LIBPATH:"C:\Program Files\Microsoft Platform SDK\Lib" /LIBPATH:"C:\orbiter\Orbitersdk\lib" /DLL /MANIFEST /MANIFESTFILE:".\Release\UMmuShuttlePB.dll.intermediate.manifest" /NODEFAULTLIB:"msvcrt.lib" /SUBSYSTEM:WINDOWS /IMPLIB:".\..\..\..\Modules/ShuttlePB.lib" /MACHINE:X86 kernel32.lib user32.lib gdi32.lib kernel32.lib

"..\..\lib\Orbiter.lib"

"..\..\lib\Orbitersdk.lib"

".\UMmuSDK.lib"

".\release\ShuttlePB.obj"

".\release\UMmuExample.obj"
]
Creating command line "link.exe @c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00000831041608.rsp /NOLOGO /ERRORREPORT:PROMPT"
[SIZE=+2]Output Window [/SIZE] Linking...
LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'
[SIZE=+2]Results [/SIZE] Build log was saved at "file://c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\BuildLog.htm"
ShuttlePB - 1 error(s), 0 warning(s)
 
LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'
Do you currently compile in debug or in release mode? Have you applied the 'Ignore specific library' setting to both of these modes in the settings?

[EDIT]
I noticed you are compiling in release mode, and also have the setting correct in the release mode.
However, I discovered your problem:
You entered " msvcrt.lib", while it should be "msvcirt.lib"
[/EDIT]

regards,
mcduck
 
Thanks made that change and now this:
[SIZE=+3]Build Log [/SIZE] Build started: Project: ShuttlePB, Configuration: Release|Win32


[SIZE=+2]Command Lines [/SIZE] Creating temporary file "c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00000B31041240.rsp" with contents
[
/OUT:".\release/UMmuShuttlePB.dll" /INCREMENTAL:NO /LIBPATH:"C:\Program Files\Microsoft Platform SDK\Lib" /LIBPATH:"C:\orbiter\Orbitersdk\lib" /DLL /MANIFEST /MANIFESTFILE:".\Release\UMmuShuttlePB.dll.intermediate.manifest" /NODEFAULTLIB:"msvcirt.lib" /SUBSYSTEM:WINDOWS /IMPLIB:".\..\..\..\Modules/ShuttlePB.lib" /MACHINE:X86 kernel32.lib user32.lib gdi32.lib kernel32.lib

"..\..\lib\Orbiter.lib"

"..\..\lib\Orbitersdk.lib"

".\UMmuSDK.lib"

".\release\ShuttlePB.obj"

".\release\UMmuExample.obj"
]
Creating command line "link.exe @c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\RSP00000B31041240.rsp /NOLOGO /ERRORREPORT:PROMPT"
[SIZE=+2]Output Window [/SIZE] Linking...
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
Creating library .\..\..\..\Modules/ShuttlePB.lib and object .\..\..\..\Modules/ShuttlePB.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
.\release/UMmuShuttlePB.dll : fatal error LNK1169: one or more multiply defined symbols found
[SIZE=+2]Results [/SIZE] Build log was saved at "file://c:\orbiter\Orbitersdk\samples\NEWUMMU\Release\BuildLog.htm"
ShuttlePB - 3 error(s), 1 warning(s)
 
ok I think I need to change the compilation setting from Multi-threaded to Multi-threaded DLL. not sure where this is found
 
Back
Top