/usr/bin/ld error

Mark Komarinski mkomarinski at wayga.org
Thu Sep 17 12:19:39 EDT 2009


On 09/17/2009 12:08 PM, bruce.labitt at autoliv.com wrote:
> The fun never ends...
>
> My make file compiles everything, using the compiler of choice ( using 
> brute force, not using elegance ).  However, ld fails to find -lfftw3. The 
> error is:
>
> /usr/bin/ld: skipping incompatible /usr/local/lib/libfftw3.so when 
> searching for -lfftw3
> /usr/bin/ld: skipping incompatible /usr/local/lib/libfftw3.a when 
> searching for -lfftw3
> /usr/bin/ld: skipping incompatible /usr/local/lib/libfftw3.so when 
> searching for -lfftw3
> /usr/bin/ld: skipping incompatible /usr/local/lib/libfftw3.a when 
> searching for -lfftw3
> /usr/bin/ld: cannot find -lfftw3
> collect2: ld returned 1 exit status
> make: *** [server] Error 1
>   
Throw in the output of 'file /usr/local/lib/libfftw3.*'.  I'd have to 
guess that the fftw libraries are 32-bit while you're compiling a 64-bit 
application.

-Mark


More information about the gnhlug-discuss mailing list