I have been trying to install and execute a c-program using fftw3 library on Ubuntu machine but getting this error so many times.
How to fix the error? Help is much appreciated.
latest source code was downloaded: http://www.fftw.org/download.html
Install commands:
sudo -H ./configure --enable-float --enable-sse --enable-threads
sudo -H make
sudo -H make install
Trying to compile:
gcc -Wall -O3 -o jediconvolve jediconvolve.c -L /usr/local/lib -lm -lcfitsio -lfftw3f
Errors:
bhishan@jedisim_sources:gcc -Wall -O3 -o jediconvolve jediconvolve.c -L /usr/local/lib -lm -lcfitsio -lfftw3f
/usr/bin/ld: /usr/local/lib/libfftw3f.a(trig.o): undefined reference to symbol 'sincos@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status