* problem with fftw (probaly easy to solve)
@ 2002-02-21 8:46 Olivier Ricordeau
2002-02-21 10:28 ` Claudio Bley
0 siblings, 1 reply; 5+ messages in thread
From: Olivier Ricordeau @ 2002-02-21 8:46 UTC (permalink / raw)
To: gcc-help
Hi all!
I'm making a little DSP program that uses the FFTW librariy to do
Fourier's transforms. I've made a #include <rfftw.h> in my C source code
and when I try to compile here is what I get:
-----------------------------------------------------------------------
[olivier@localhost c]$ gcc -Wall -ansi -o wav2tab wav2tab.c
/home/olivier/tmp/ccphPEIZ.o: In function `main':
/home/olivier/tmp/ccphPEIZ.o(.text+0x27): undefined reference to
`rfftw_create_plan'
/home/olivier/tmp/ccphPEIZ.o(.text+0x8e): undefined reference to
`rfftw_destroy_plan'
/home/olivier/tmp/ccphPEIZ.o(.text+0x158): undefined reference to
`rfftw_one'
/home/olivier/tmp/ccphPEIZ.o(.text+0x26d): undefined reference to
`rfftw_destroy_plan'
collect2: ld returned 1 exit status
[olivier@localhost c]$
-----------------------------------------------------------------------
Could someone help me with this problem? It looks like the answer is
pretty simple but I don't have it :-)
--
| -=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"|
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with fftw (probaly easy to solve)
2002-02-21 8:46 problem with fftw (probaly easy to solve) Olivier Ricordeau
@ 2002-02-21 10:28 ` Claudio Bley
2002-02-21 11:26 ` Olivier Ricordeau
0 siblings, 1 reply; 5+ messages in thread
From: Claudio Bley @ 2002-02-21 10:28 UTC (permalink / raw)
To: Olivier Ricordeau; +Cc: gcc-help
>>>>> "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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with fftw (probaly easy to solve)
2002-02-21 10:28 ` Claudio Bley
@ 2002-02-21 11:26 ` Olivier Ricordeau
2002-02-21 11:36 ` Olivier Ricordeau
2002-02-21 12:23 ` Claudio Bley
0 siblings, 2 replies; 5+ messages in thread
From: Olivier Ricordeau @ 2002-02-21 11:26 UTC (permalink / raw)
To: gcc-help
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"|
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with fftw (probaly easy to solve)
2002-02-21 11:26 ` Olivier Ricordeau
@ 2002-02-21 11:36 ` Olivier Ricordeau
2002-02-21 12:23 ` Claudio Bley
1 sibling, 0 replies; 5+ messages in thread
From: Olivier Ricordeau @ 2002-02-21 11:36 UTC (permalink / raw)
To: gcc-help
I found!!!!
Here's the right compilation comand!:
gcc -Wall -ansi -o wav2tab wav2tab.c -lrfftw -lfftw -lm
Thanks to those who have tried to find the solution
PS: :-) :-) :-)
--
| -=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"|
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem with fftw (probaly easy to solve)
2002-02-21 11:26 ` Olivier Ricordeau
2002-02-21 11:36 ` Olivier Ricordeau
@ 2002-02-21 12:23 ` Claudio Bley
1 sibling, 0 replies; 5+ messages in thread
From: Claudio Bley @ 2002-02-21 12:23 UTC (permalink / raw)
To: Olivier Ricordeau; +Cc: gcc-help
>>>>> "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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-02-21 19:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-21 8:46 problem with fftw (probaly easy to solve) Olivier Ricordeau
2002-02-21 10:28 ` Claudio Bley
2002-02-21 11:26 ` Olivier Ricordeau
2002-02-21 11:36 ` Olivier Ricordeau
2002-02-21 12:23 ` Claudio Bley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).