From: Fabrice I. <Fab...@li...> - 2001-04-03 13:10:38
|
Fabrice ILPONSE wrote: > > Butt, Vaughn A. wrote: > >> >> I had this problem a while back. The way I solved it was as follows. >> (Thanks to Jeff Sturm for pointing me to the (old) FAQ. The FAQ also >> has >> some other methods of accomplishing what you want) >> >> Download and extract pexports-041.zip >> >> C:\TEMP>pexports foo.dll >foo.def >> where foo.dll is the DLL that you want to use. >> >> C:\TEMP>dlltool --def foo.def --dllname foo.dll --output-lib libfoo.a >> >> C:\TEMP>make > > > Well, i made it using version 0.4.3 of pexports. All went ok to > create the .a. > I used the fmod library as example. So now i've got the fmod.h, > fmod.dll and libfmod.a > However when i try the compile and link the simplest example : > gcc -mconsole -O2 main.cpp -o main.exe -L. -lfmod > > it finds undifined reference to the functions. I've checked the > names in fmod.def, they seem to be the same... > > Can u tell me where the mistake is? > > thx PRECISION: in the def the description are like: _FSOUND_SetPanSeperation@4 DATA ; no section ; RVA 0001ab3e _FSOUND_SetPaused@8 DATA ; no section ; RVA 0001bbea _FSOUND_SetPriority@8 DATA ; no section ; RVA 0001bc76 _FSOUND_SetReserved@8 DATA ; no section ; RVA 0001bce7 _FSOUND_SetSFXMasterVolume@4 DATA ; no section ; RVA 0001aabd _FSOUND_SetSurround@8 DATA ; no section ; RVA 0001bad9 _FSOUND_SetVolume@8 DATA ; no section ; RVA 0001b818 _FSOUND_SetVolumeAbsolute@8 DATA ; no section ; RVA 0001b8eb _FSOUND_StartSound@12 DATA ; no section ; RVA 0001b2bb _FSOUND_StartSoundDSP@16 DATA ; no section ; RVA 0001b1aa _FSOUND_StopAllChannels@0 DATA ; no section ; RVA 0001b54b _FSOUND_StopSound@4 DATA ; no section ; RVA 0001b4cd does DATA and "no section" mistakes? > > >> >> >> with a make file as follows >> >> mine.exe : mine.o >> gcc -mconsole -o mine.exe mine.o -LC:/temp -lfoo >> >> mine.o : mine.c makefile foo.h >> gcc -c -o mine.o mine.c >> <<<< >> >> >> > |