Hi
My project uses the fftw library for fast fourier transforms. I compile it in a separate project, with Debug and Release builds, and link the Debug build of fftw to the Debug build of my project and the Release build of fftw to the Release build of my project.
All works fin when I to have it set like this:
(1)
Build Options
main -
Debug - Linker settings - Link libraries: ../fftw/Bin/Debug/libfftw.so
Release - Linker settings - Link libraries: ../fftw/Bin/Release/libfftw.so
It seems more elegant though to do it like this:
(2)
Build Options
main - Linker settings - Link libraries: libfftw.so
Debug - Search directories - Linker: ../fftw/Bin/Debug
Release - Search directories - Linker: ../fftw/Bin/Release
Building it with method (2) fails though, with the familiar error
/usr/bin/ld: cannot find -lfftw.so
collect2: ld returned 1 exit status
So does method (2) just not work? Do linker search directories work differently from compiler search directories?
best wishes
Alle Meije