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

21

05.03.2006, 19:14

aah, ich hab win32 consola application ausgewählt

/edit: ich glaube das is trotzdem nicht behoben, weil wenn ich projekte die mit VC++ 5 erstellt wurden öffne und kompiliere bekomm ich wieder 55 nichtssagende linker errors...

Anonymous

unregistriert

22

05.03.2006, 19:29

Sk!p
Es gibt keine "Nichtsaussagende Linkererror"

23

06.03.2006, 17:35

oh doch die gibt es, hier hast du 55 davon :D

------ Build started: Project: Fmod, Configuration: Release Win32 ------
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 Fmod.obj
libcpmt.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::_Locinfo(char const *)" (??0_Locinfo@std@@QAE@PBD@Z) already defined in Fmod.obj
libcpmt.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::~_Locinfo(void)" (??1_Locinfo@std@@QAE@XZ) already defined in Fmod.obj
libcpmt.lib(locale.obj) : error LNK2005: "public: static class std::locale::id std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > >::id" (?id@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A) already defined in Fmod.obj
libcpmt.lib(locale.obj) : error LNK2005: "public: static class std::locale::id std::numpunct<char>::id" (?id@?$numpunct@D@std@@2V0locale@2@A) already defined in Fmod.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 Fmod.obj
Fmod.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: __thiscall std::exception::exception(char const * const &)" (??0exception@std@@QAE@ABQBD@Z)
Fmod.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
Main.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ)
Fmod.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 LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
Fmod.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 LNK2001: unresolved external symbol _memcpy_s
Fmod.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 LNK2001: unresolved external symbol _memmove_s
Fmod.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 LNK2001: unresolved external symbol "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z)
Fmod.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 LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z)
Fmod.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 LNK2001: unresolved external symbol "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ)
Fmod.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 LNK2001: unresolved external symbol "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ)
Fmod.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: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ)
Fmod.obj : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
Fmod.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 LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)
Fmod.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 LNK2001: unresolved external symbol ___security_cookie
Fmod.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 LNK2001: unresolved external symbol ___CxxFrameHandler3
Fmod.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 LNK2001: unresolved external symbol @__security_check_cookie@4
Fmod.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 LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ)
Fmod.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 LNK2001: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z)
Fmod.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 LNK2001: unresolved external symbol "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ)
Fmod.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 LNK2001: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z)
Fmod.obj : error LNK2019: unresolved external symbol __invalid_parameter_noinfo referenced in function "public: char & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator[](unsigned int)" (??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z)
Main.obj : error LNK2001: unresolved external symbol __invalid_parameter_noinfo
Fmod.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) referenced in function "private: void __thiscall std::numpunct<char>::_Tidy(void)" (?_Tidy@?$numpunct@D@std@@AAEXXZ)
Main.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
Fmod.obj : error LNK2019: unresolved external symbol "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) referenced in function "char * __cdecl std::_Maklocstr<char>(char const *,char *,struct _Cvtvec const &)" (??$_Maklocstr@D@std@@YAPADPBDPADABU_Cvtvec@@@Z)
Main.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z)
Fmod.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::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > > const & __cdecl std::use_facet<class std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > > >(class std::locale const &)" (??$use_facet@V?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@@std@@YAABV?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@0@ABVlocale@0@@Z)
Main.obj : error LNK2001: unresolved external symbol "public: __thiscall std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QAE@PBD@Z)
Fmod.obj : error LNK2019: unresolved external symbol _sprintf_s referenced in function "protected: virtual class std::ostreambuf_iterator<char,struct std::char_traits<char> > __thiscall std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > >::do_put(class std::ostreambuf_iterator<char,struct std::char_traits<char> >,class std::ios_base &,char,long)const " (?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MBE?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AAVios_base@2@DJ@Z)
Main.obj : error LNK2001: unresolved external symbol _sprintf_s
.\Release/Fmod.exe : fatal error LNK1120: 24 unresolved externals

es handelt sich dabei um ein tutorial dass eine FMOD-Sounddatei abspielen soll. wenn ich das projekt mit VC++ 5 öffne kompiliert er es einwandfrei...

rewb0rn

Supermoderator

Beiträge: 2 773

Wohnort: Berlin

Beruf: Indie Game Dev

  • Private Nachricht senden

24

06.03.2006, 19:23

hast wohl was zweimal eingebunden

hau mal in deine header anfangs

C-/C++-Quelltext

1
2
#ifndef DATEINAME //zb FMOD

#define DATEINAME


und am ende dann

C-/C++-Quelltext

1
#endif

25

07.03.2006, 19:39

So schnell kann's gehn... ^^

26

07.03.2006, 23:33

nein, hatte ich vorher schon drin, funnktioniert aber immernoch nicht :/

PS: warum krieg ich eigentlich immer wenn ich meine e-mail zur registrierung bestätigen will: 'We're unable to complete your request

The Passport Network is experiencing technical difficulties. Please try again later.'

schon seit 4 tagen so...

Helmut

5x Contest-Sieger

Beiträge: 692

Wohnort: Bielefeld

  • Private Nachricht senden

27

08.03.2006, 13:32

Zitat von »"nix da"«

6. Wie schon gesagt, wenn Du gerne in der Steinzeit leben willst, weil dein Code "schöner" aussehen soll, lass es besser bleiben. Vorallem da Deine Programme jetzt schon unter XP SP2 und Vista nur noch emuliert werden und das ordentlich auf die Performance drücken kann ;)

Unicode und ASCII/ANSI sind 2 verschiedene Welten, dazu benutzt char nur 128 Zeichen, unsigend char 256 (welchen Du ja nicht benutzt) und wchar_t die komplette Bandbreite eines unsigned short. Das sind 2 Welten und das hat nicht nur was mit den Asiaten zu tun. Versuch Du mal mit einem char einen deutschen Umlaut darzustellen. Tipp: Der Umlaut steckt nicht in den höheren Bits sondern in den Tieferen Bits.

Ergo: char für Texte suckt.

So ein Quatsch. ANSI Programme werden nicht emuliert, sondern nur der Text entsprechend bei jedem Funktionsaufruf konvertiert. Das mag die komplette Laufzeit deines Programms vielleicht um eine Millisekunde verlangsamen, dafür verschwendest du aber keinen Speicher und lässt die armen Win 9x Benutzer nicht im Regen stehen.
Zudem kann ein normaler char auch 256 Werte speichern. Ob der eine Teil dann negative Zahlen sind ist pipsegal, da man mit den eigentlichen Zahlen eigentlich nie in Berührung kommt und die interne Binärdarstellung eh die selbe ist.
Solange man also nicht für die Japaner programmiert sollte man also in den Projekteinstellungen auf ANSI umstellen...

Ciao

Sheddex

unregistriert

28

08.03.2006, 15:47

Zweifelst du gerade an nix da? Wenn er das liest bist du so gut wie tot^^

Zitat von nix da:

Zitat


Merke: Was ich sage stimmt immer!

Anonymous

unregistriert

29

08.03.2006, 17:42

Helmut
Man merkt, Du beziehst Deine Angaben aus "hörensagen" bzw. Wunschdenken und nicht aus Fakten, daher gehe ich auf diesen Bullshit (Denn das ist es auch) absolut nicht ein. Aber ich sags mal so: Meine Kollegen haben sich auch köstlichst amüsiert.

DarkHunter
Isses nicht wert. Ich sag nur: Natural Selection wird hier eingreifen und die Schwachen gehen unter, ganz einfach. Ich habe Zeit ;) Viel Zeit und ich opfere die nicht für Wunschdenken.

Sheddex

unregistriert

30

08.03.2006, 18:01

Du und deine natural selection...^^

Werbeanzeige