Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22002

How to fix 'sincos@@GLIBC_2.2.5' undefined reference for fftw3 library

$
0
0

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

file jediconvolve.c to test

https://pastebin.com/fHKwejj7


Viewing all articles
Browse latest Browse all 22002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>