Error compile error [solved]

Topper

Addon Developer
Addon Developer
Donator
Joined
Mar 28, 2008
Messages
671
Reaction score
32
Points
43
Hi,
i've got a compiler error:
------ Neues Erstellen gestartet: Projekt: testproject, Konfiguration: Debug Win32 ------
Die Zwischen- und Ausgabedateien für das Projekt "testproject" mit der Konfiguration "Debug|Win32" werden gelöscht.
Kompilieren...
baseland.cpp
Manifest in Ressourcen wird kompiliert...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
Verknüpfen...
Bibliothek "C:\Orbiter\Orbiter2010 P1 clean\Modules\Plugin\test.lib" und Objekt "C:\Orbiter\Orbiter2010 P1 clean\Modules\Plugin\test.exp" werden erstellt.
baseland.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__RTC_CheckEsp" in Funktion ""void __cdecl calldummy(void)" (?calldummy@@YAXXZ)".
baseland.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__RTC_Shutdown".
baseland.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__RTC_InitBase".
baseland.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_sprintf" in Funktion "_opcPreStep".
baseland.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__CxxThrowException@8" in Funktion ""public: char * __cdecl std::_DebugHeapAllocator<char>::allocate(unsigned int,void const *)" (?allocate@?$_DebugHeapAllocator@D@std@@QAAPADIPBX@Z)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__CxxThrowException@8".
baseland.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""const type_info::`vftable'" (??_7type_info@@6B@)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""const type_info::`vftable'" (??_7type_info@@6B@)".
baseland.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)".
baseland.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)" in Funktion ""public: __thiscall std::bad_alloc::bad_alloc(char const *)" (??0bad_alloc@std@@QAE@PBD@Z)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)".
baseland.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)".
baseland.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)" in Funktion ""public: virtual __thiscall std::bad_alloc::~bad_alloc(void)" (??1bad_alloc@std@@UAE@XZ)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)".
baseland.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""void __cdecl operator delete(void *)" (??3@YAXPAX@Z)" in Funktion ""public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl operator delete(void *)" (??3@YAXPAX@Z)".
baseland.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_free" in Funktion ""void __cdecl std::_DebugHeapDelete<void>(void *)" (??$_DebugHeapDelete@X@std@@YAXPAX@Z)".
libcpmtd.lib(xdebug.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_free".
baseland.obj : error LNK2001: Nicht aufgelöstes externes Symbol "__fltused".
LINK : error LNK2001: Nicht aufgelöstes externes Symbol "__DllMainCRTStartup@12".
libcpmtd.lib(xdebug.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_atexit" in Funktion ""void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)".
libcpmtd.lib(xdebug.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__malloc_dbg" in Funktion ""void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)".
libcpmtd.lib(xdebug.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall std::exception::exception(char const * const &,int)" (??0exception@std@@QAE@ABQBDH@Z)" in Funktion ""public: __thiscall std::bad_alloc::bad_alloc(void)" (??0bad_alloc@std@@QAE@XZ)".
libcpmtd.lib(xdebug.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__free_dbg" in Funktion ""void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)".
C:\Orbiter\Orbiter2010 P1 clean\Modules\Plugin\test.dll : fatal error LNK1120: 18 nicht aufgelöste externe Verweise.
Das Buildprotokoll wurde unter "file://c:\Orbiter\Orbiter2010 P1 clean\Orbitersdk\samples\testproject\Debug\BuildLog.htm" gespeichert.
testproject - 27 Fehler, 0 Warnung(en)
========== Alles neu erstellen: 0 erfolgreich, Fehler bei 1, 0 übersprungen ==========

i've added the
msvcirt.lib, msvcrt.lib, libcmt.lib

to the ignored library.
I've followed all this steps:

, but in VS 2008.

I've tryed to compiling in "debug mode", because i want to test it, but it's not working!?

In "release mode" where i've done no modufication, it works?
 
Last edited:
Could you at least post the English version of the output and the code. I recognize some of the output errors - undefined external symbols, but not all of them.

Also,
In "release mode" where i've done no modufication, it works?

Does it compile in release mode, but not debug mode? If yes, then you need to make the same settings for the Debug mode as you did for Release mode. The includes, libs, that things.
 
I've found it: the runtime library was not set to "Multithreaded-Debug-DLL (/MDd)" or Multithreaded-Debug (/MTd)
I think for debug mode it's necessary...
And now it's working ^^
 
Last edited:
Back
Top