| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen | 
	
	
		| Autor | Nachricht | 
	
		| =]Mid[=]Night[= Super JLI'ler
 
  
 
 Anmeldedatum: 20.11.2002
 Beiträge: 380
 Wohnort: Aachen
 Medaillen: Keine
 
 
 | 
			
				|  Verfasst am: 02.01.2006, 17:08    Titel: FmodEX linker error |   |  
				| 
 |  
				| Hat jemand von euch schon mal FmodEX benutzt? 
 Ich probiere einfach nur, das PlaySound-Sample zu kompilieren, aber obwohl die fmodex-lib eingebunden ist, bekomme ich linker-Fehler.
 Ich benutze Dev-C++
 
 Compiler-Log:
 
 Compiler: Default compiler
 Building Makefile: "C:\Programme\FMOD SoundSystem\FMOD Programmers API\examples\playsound\Makefile.win"
 Führt  make... aus
 make.exe -f "C:\Programme\FMOD SoundSystem\FMOD Programmers API\examples\playsound\Makefile.win" all
 g++.exe main.o  -o "playsound.exe" -L"lib" -lfmodex
 
 main.o:main.cpp:(.text+0x394): undefined reference to `_ZN4FMOD6System10getVersionEPj@8'
 main.o:main.cpp:(.text+0x3f8): undefined reference to `_ZN4FMOD6System4initEijPv@16'
 main.o:main.cpp:(.text+0x433): undefined reference to `_ZN4FMOD6System11createSoundEPKcjP22FMOD_CREATESOUNDEXINFOPPNS_5SoundE@20'
 main.o:main.cpp:(.text+0x457): undefined reference to `_ZN4FMOD5Sound7setModeEj@8'
 
 main.o:main.cpp:(.text+0x492): undefined reference to `_ZN4FMOD6System11createSoundEPKcjP22FMOD_CREATESOUNDEXINFOPPNS_5SoundE@20'
 main.o:main.cpp:(.text+0x4cd): undefined reference to `_ZN4FMOD6System11createSoundEPKcjP22FMOD_CREATESOUNDEXINFOPPNS_5SoundE@20'
 main.o:main.cpp:(.text+0x5b0): undefined reference to `_ZN4FMOD6System9playSoundE17FMOD_CHANNELINDEXPNS_5SoundEbPPNS_7ChannelE@20'
 main.o:main.cpp:(.text+0x5ec): undefined reference to `_ZN4FMOD6System9playSoundE17FMOD_CHANNELINDEXPNS_5SoundEbPPNS_7ChannelE@20'
 main.o:main.cpp:(.text+0x628): undefined reference to `_ZN4FMOD6System9playSoundE17FMOD_CHANNELINDEXPNS_5SoundEbPPNS_7ChannelE@20'
 main.o:main.cpp:(.text+0x644): undefined reference to `_ZN4FMOD6System6updateEv@4'
 main.o:main.cpp:(.text+0x687): undefined reference to `_ZN4FMOD7Channel9isPlayingEPb@8'
 main.o:main.cpp:(.text+0x6bc): undefined reference to `_ZN4FMOD7Channel9getPausedEPb@8'
 main.o:main.cpp:(.text+0x6f9): undefined reference to `_ZN4FMOD7Channel11getPositionEPjj@12'
 main.o:main.cpp:(.text+0x72e): undefined reference to `_ZN4FMOD7Channel15getCurrentSoundEPPNS_5SoundE@8'
 
 main.o:main.cpp:(.text+0x751): undefined reference to `_ZN4FMOD5Sound9getLengthEPjj@12'
 main.o:main.cpp:(.text+0x786): undefined reference to `_ZN4FMOD6System18getChannelsPlayingEPi@8'
 main.o:main.cpp:(.text+0x8e3): undefined reference to `_ZN4FMOD5Sound7releaseEv@4'
 main.o:main.cpp:(.text+0x8ff): undefined reference to `_ZN4FMOD5Sound7releaseEv@4'
 main.o:main.cpp:(.text+0x91b): undefined reference to `_ZN4FMOD5Sound7releaseEv@4'
 main.o:main.cpp:(.text+0x937): undefined reference to `_ZN4FMOD6System5closeEv@4'
 main.o:main.cpp:(.text+0x953): undefined reference to `_ZN4FMOD6System7releaseEv@4'
 collect2: ld returned 1 exit status
 
 make.exe: *** [playsound.exe] Error 1
 
 Ausführung beendet
 |  | 
	
		| Nach oben |  | 
	
		|  | 
	
		| Patrick Dark JLI Master
 
  
 
 Anmeldedatum: 25.10.2004
 Beiträge: 1895
 Wohnort: Düren
 Medaillen: Keine
 
 
 |  | 
	
		| Nach oben |  | 
	
		|  | 
	
		| =]Mid[=]Night[= Super JLI'ler
 
  
 
 Anmeldedatum: 20.11.2002
 Beiträge: 380
 Wohnort: Aachen
 Medaillen: Keine
 
 
 | 
			
				|  Verfasst am: 02.01.2006, 18:01    Titel: |   |  
				| 
 |  
				| Schön und gut, aber wenn die extra für meinen compiler ne lib mitliefern, sollte das doch auch funzen ... |  | 
	
		| Nach oben |  | 
	
		|  | 
	
		| Patrick Dark JLI Master
 
  
 
 Anmeldedatum: 25.10.2004
 Beiträge: 1895
 Wohnort: Düren
 Medaillen: Keine
 
 
 |  | 
	
		| Nach oben |  | 
	
		|  | 
	
		| =]Mid[=]Night[= Super JLI'ler
 
  
 
 Anmeldedatum: 20.11.2002
 Beiträge: 380
 Wohnort: Aachen
 Medaillen: Keine
 
 
 | 
			
				|  Verfasst am: 02.01.2006, 18:07    Titel: |   |  
				| 
 |  
				| "which library do I use.txt" im lib-Verzeichnis: 
 
  	  | Code: |  	  | Which library do I link?
 ------------------------
 
 If you want to use fmodex.dll: (all plugins compiled into the dll, larger main dll size)
 
 Visual Studio users             - fmodex_vc.lib.
 Metrowerks Codewarrior users    - fmodex_vc.lib.
 Borland users                   - fmodex_bc.lib.
 LCC-Win32 users                 - fmodex_lcc.lib.
 Dev-C++, MinGW and CygWin users - libfmodex.a.    <-- die hab ich natürlich genommen
 
 If you want to use fmodexp.dll: (plugins left external, smaller main dll size).
 
 Visual Studio users             - fmodexp_vc.lib.
 Metrowerks Codewarrior users    - fmodexp_vc.lib.
 Borland users                   - fmodexp_bc.lib.
 LCC-Win32 users                 - fmodexp_lcc.lib.
 Dev-C++, MinGW and CygWin users - libfmodexp.a.
 
 | 
 
 Dasselbe steht auch nochmal in der documentation
 |  | 
	
		| Nach oben |  | 
	
		|  | 
	
		| =]Mid[=]Night[= Super JLI'ler
 
  
 
 Anmeldedatum: 20.11.2002
 Beiträge: 380
 Wohnort: Aachen
 Medaillen: Keine
 
 
 | 
			
				|  Verfasst am: 03.01.2006, 13:35    Titel: |   |  
				| 
 |  
				| Ok, hab jetzt im FmodEX-Forum gefunden, dass man wohl mit mingw das neue C++-Interface nicht benutzen kann, was in der Hilfe nirgendwo erwähnt ist, sondern dass man die alten C-Funktionen verwenden muss -.- |  | 
	
		| Nach oben |  | 
	
		|  | 
	
		|  |