problem with fftw (probaly easy to solve)
Olivier Ricordeau
olivier.ricordeau@wanadoo.fr
Thu Feb 21 11:26:00 GMT 2002
Claudio Bley wrote:
>>>>>>"Olivier" == Olivier Ricordeau <olivier.ricordeau@wanadoo.fr> writes:
>>>>>>
>
> Olivier> Hi all! I'm making a little DSP program that uses the
> Olivier> FFTW librariy to do Fourier's transforms. I've made a
> Olivier> #include <rfftw.h> in my C source code and when I try to
> Olivier> compile here is what I get:
>
> Olivier> -----------------------------------------------------------------------
>
> Olivier> [olivier@localhost c]$ gcc -Wall -ansi -o wav2tab
> [snip]
> Olivier> Could someone help me with this problem? It looks like
> Olivier> the answer is pretty simple but I don't have it :-)
>
> You also need to link with the fftw library:
>
> gcc -Wall -ansi -o wav2tab wav2tab.c -lfftw
>
> Claudio
>
>
It gives the same result... (now I use gcc 3)
[olivier@localhost c]$ gcc-3.0.1 -Wall -ansi -o wav2tab wav2tab.c -lfftw
/home/olivier/tmp/ccuQJWCn.o: In function `main':
/home/olivier/tmp/ccuQJWCn.o(.text+0x2a): undefined reference to
`rfftw_create_plan'
/home/olivier/tmp/ccuQJWCn.o(.text+0x91): undefined reference to
`rfftw_destroy_plan'
/home/olivier/tmp/ccuQJWCn.o(.text+0x15d): undefined reference to
`rfftw_one'
/home/olivier/tmp/ccuQJWCn.o(.text+0x278): undefined reference to
`rfftw_destroy_plan'
collect2: ld returned 1 exit status
[olivier@localhost c]$
-------------------------------------------------------------------
I've also tried with -lrfftw and it's worse:
[olivier@localhost c]$ gcc-3.0.1 -Wall -ansi -o wav2tab wav2tab.c -lrfftw
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_die'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_make_node_hc2hc'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_make_node_hc2real'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftwnd_work_size'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_destroy_plan_internal'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftwnd_create_plans_specific'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_make_empty_table'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_make_plan'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_free'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_fprint_plan'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_factor'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_complete_twiddle'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_malloc'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftwnd_destroy_plan'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftwnd_create_plan_aux'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_estimate_node'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_lookup'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_gettimeofday_get_time'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_destroy_table'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftwnd_create_plans_generic'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_wisdom_lookup'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_make_node_real2hc'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_reverse_int_array'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_pick_better'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftwnd_new_plan_array'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_make_node_rgeneric'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_wisdom_add'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftwnd_fprint_plan'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_gettimeofday_time_diff'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_use_plan'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw_insert'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.1/../../../librfftw.so:
undefined reference to `fftw'
collect2: ld returned 1 exit status
[olivier@localhost c]$
Please help I'm a beginner in C and next week I have to present this
program to my teachers...
--
| -=Olivier RICORDEAU=- | It is rumored that someone once asked |
| Info Spé C2 |Dr. Bellman how to tell the exercises apart|
| EPITA Promo 2005 |from the research problems, and he replied,|
|olivier.ricordeau@epita.fr| "If you can solve it, it is an exercise; |
| ICQ: 65452304 | otherwise it's a research problem." |
| Phone: 06-86-72-08-52 | D.Knuth, "The Art Of Computer Programming"|
More information about the Gcc-help
mailing list