gcc linking / libtools / building stuff
Bruce Labitt
bruce.labitt at verizon.net
Wed Jan 16 21:22:54 EST 2008
I'm trying to get a program I wrote to link with FFTW. This is being
done on gcc on linux. I built FFTW from source. When I did make
install there was a message in the output that said I needed to use
libtools or one of the following... a rather long list followed. If
you want to know what it was I have to go look for it. When I went to
find documentation on libtools I got 100 pages of "stuff". Why would I
want to use libtools? I don't even know what it is really for. All I
want is the compiler to be able to find the libraries I just built so I
can link it to my stuff.
So I tried to just build it from the command line and this is what I got.
$ gcc main_tb_fftw.cpp -otbfft -I/usr/local/include -L/usr/local/lib
-lfftw3 -lm
/tmp/ccJMISfw.o: In function
`__static_initialization_and_destruction_0(int, int)':
main_tb_fftw.cpp:(.text+0x23): undefined reference to
`std::ios_base::Init::Init()'
/tmp/ccJMISfw.o: In function `__tcf_0':
main_tb_fftw.cpp:(.text+0x6c): undefined reference to
`std::ios_base::Init::~Init()'
/tmp/ccJMISfw.o:(.eh_frame+0x12): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
So what does all that mean??? The program did compile and link using
Dev-C++ (gcc) on windoze. It looks like it can't find iostream ? I
have that included in main_tb_fftw.
Thanks!
More information about the gnhlug-discuss
mailing list