Du bist nicht angemeldet.

Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!

Werbeanzeige

61

10.03.2006, 19:13

also komischerweise kompiliert er noch nicht mal mehr

C-/C++-Quelltext

1
2
3
4
int main()
{
return 0;
}

es erscheint ne fehlermeldung ob ich debugging continuen will und egal ob ich yes oder no klicke steht das unten drin:

'Project1.exe': Loaded 'C:\Dokumente und Einstellungen\banshee_\Eigene Dateien\Visual Studio 2005\Projects\Project1\debug\Project1.exe', Binary was not built with debug information.
'Project1.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
The program '[1900] Project1.exe: Native' has exited with code 0 (0x0).

gott sei dank hab ich VC++ 6 noch drauf
:rolleyes: [/code]

Anonymous

unregistriert

62

10.03.2006, 19:16

Sk!p
Er hat kompiliert, hat das Programm gestartet und direkt wieder anständig geschlossen? Guter Compiler, hat genau richtig gearbeitet. Was hast Du dir denn gedacht?

63

10.03.2006, 20:47

hm stimm, jetz wo du es sagst...

das sah nach ner fehlermeldung aus aber ich sehe ein konsolenfenster aufklappen und schließen. gut, gehen wir einen schritt weiter:

C-/C++-Quelltext

1
2
3
4
5
6
7
8
9
10
#include <iostream>

using namespace std;

int main()
{
    std::cin.get();

    return 0;
}


------ Build started: Project: Project1, Configuration: Release Win32 ------
Compiling...
main.cpp
Linking...
libcpmt.lib(locale0.obj) : error LNK2005: "public: static unsigned int const std::ctype<char>::table_size" (?table_size@?$ctype@D@std@@2IB) already defined in main.obj
libcpmt.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::_Locinfo(char const *)" (??0_Locinfo@std@@QAE@PBD@Z) already defined in main.obj
libcpmt.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::~_Locinfo(void)" (??1_Locinfo@std@@QAE@XZ) already defined in main.obj
libcpmt.lib(ios.obj) : error LNK2005: "public: void __thiscall std::ios_base::clear(int,bool)" (?clear@ios_base@std@@QAEXH_N@Z) already defined in main.obj
main.obj : error LNK2019: unresolved external symbol "public: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z) referenced in function "public: __thiscall std::bad_alloc::bad_alloc(char const *)" (??0bad_alloc@std@@QAE@PBD@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) referenced in function "public: virtual __thiscall std::bad_alloc::~bad_alloc(void)" (??1bad_alloc@std@@UAE@XZ)
main.obj : error LNK2019: unresolved external symbol _memcpy_s referenced in function "public: static char * __cdecl std::char_traits<char>::_Copy_s(char *,unsigned int,char const *,unsigned int)" (?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z)
main.obj : error LNK2019: unresolved external symbol _memmove_s referenced in function "public: static char * __cdecl std::char_traits<char>::_Move_s(char *,unsigned int,char const *,unsigned int)" (?_Move_s@?$char_traits@D@std@@SAPADPADIPBDI@Z)
main.obj : error LNK2019: unresolved external symbol "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) referenced in function "public: __thiscall std::locale::id::operator unsigned int(void)" (??Bid@locale@std@@QAEIXZ)
main.obj : error LNK2019: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) referenced in function "public: void __thiscall std::locale::facet::_Register(void)" (?_Register@facet@locale@std@@QAEXXZ)
main.obj : error LNK2019: unresolved external symbol "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) referenced in function "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int)const " (?_Getfacet@locale@std@@QBEPBVfacet@12@I@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) referenced in function "protected: void __thiscall std::ctype<char>::_Tidy(void)" (?_Tidy@?$ctype@D@std@@IAEXXZ)
main.obj : error LNK2019: unresolved external symbol "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) referenced in function "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
main.obj : error LNK2019: unresolved external symbol "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) referenced in function "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(unsigned int,unsigned int)" (?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z)
main.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function "protected: void __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Copy(unsigned int,unsigned int)" (?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXII@Z)
main.obj : error LNK2019: unresolved external symbol ___CxxFrameHandler3 referenced in function __ehhandler$?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXII@Z
main.obj : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function __ehhandler$?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXII@Z
main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) referenced in function "protected: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z)
main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) referenced in function "public: __thiscall std::_Locinfo::~_Locinfo(void)" (??1_Locinfo@std@@QAE@XZ)
main.obj : error LNK2019: unresolved external symbol "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) referenced in function "public: __thiscall std::runtime_error::runtime_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0runtime_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) referenced in function "public: __thiscall std::_Locinfo::_Locinfo(char const *)" (??0_Locinfo@std@@QAE@PBD@Z)
main.obj : error LNK2019: unresolved external symbol __invalid_parameter_noinfo referenced in function "protected: virtual char const * __thiscall std::ctype<char>::_Do_widen_s(char const *,char const *,char *,unsigned int)const " (?_Do_widen_s@?$ctype@D@std@@MBEPBDPBD0PADI@Z)
main.obj : error LNK2019: unresolved external symbol "public: __thiscall std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QAE@PBD@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
C:\Dokumente und Einstellungen\banshee_\Eigene Dateien\Visual Studio 2005\Projects\Project1\Release\Project1.exe : fatal error LNK1120: 22 unresolved externals
Build log was saved at "file://c:\Dokumente und Einstellungen\banshee_\Eigene Dateien\Visual Studio 2005\Projects\Project1\Project1\Release\BuildLog.htm"
Project1 - 27 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


ich hoffe ich nerve nicht aber ich komm da echt net allein vorwärts :/

Anonymous

unregistriert

64

10.03.2006, 21:36

Sk!p
Mach das verdammte using namespace std; weg!

rewb0rn

Supermoderator

Beiträge: 2 773

Wohnort: Berlin

Beruf: Indie Game Dev

  • Private Nachricht senden

65

10.03.2006, 22:42

also entweder using namespace std und cin.get()
oder nur std::cin.get()

hinter using namespace kein semikolon

und nix da hat schon recht, besser ist es kein using namespace zu benutzen sondern immer den namespace den du gerade benutzt anzugeben, damit du nicht durcheinander kommst ;)

66

11.03.2006, 12:02

das mit using namespace hab ich noch aus meinen ganzen büchern, is aber auch egal denn auch ohne das kommen die gleichen 27 errors wie mit.

ich bin am verzweifeln -.-

Anonymous

unregistriert

67

11.03.2006, 12:51

Sk!p

C-/C++-Quelltext

1
2
3
4
5
6
7
8
9
10
#include <iostream>

int main (void)
{
    std::cout << "Teste mich!" << std::endl;

    std::cin.get ();

    return 0;
}

Kopieren, Testen, Starten und Fehler posten.

68

11.03.2006, 19:45

die gleichen 27 linker errors wie oben...

kann es sein dass irgendwas mit den projekteinstellungen nicht stimmt oder irgendwas falsch eingebunden ist?

/edit: ich hab den fehler gefunden...er hat mir einfach die libs von VC++ 6 eingebunden -.-

Anonymous

unregistriert

69

11.03.2006, 21:09

Sk!p
In meinem Tutorial steht klipp und klar: "ALTER SCHEI** RUNTER!"

70

12.03.2006, 11:06

ja das hatte ich auch nur drauf falls das neue nicht funktioniert.

außerdem bin ich jetzt ne erfahrung reicher :D

Werbeanzeige