This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problem with fftw (probaly easy to solve)
>>>>> "Olivier" == Olivier Ricordeau <olivier.ricordeau@wanadoo.fr> writes:
>> gcc -Wall -ansi -o wav2tab wav2tab.c -lfftw
>>
>> Claudio
Olivier> It gives the same result... (now I use gcc 3)
Olivier> ------------------------------------------------------------
Olivier> I've also tried with -lrfftw and it's worse:
Olivier> Please help I'm a beginner in C and next week I have to
Olivier> present this program to my teachers...
Okay, I couldn't try this at home because I haven't installed the fftw
library. But I found this FAQ entry at http://www.fftw.org/faq/:
,----
| Question 3.7. My program does not link (on Unix).
|
| Please use the exact order in which libraries are specified by the
| FFTW manual (e.g. -lrfftw -lfftw -lm). Also, note that the libraries
| must be listed after your program sources/objects. (The general rule
| is that if A uses B, then A must be listed before B in the link
| command.). For example, switching the order to -lfftw -lrfftw -lm will
| fail.
`----
Claudio