I have to link plenty of libraries here and its getting all messy:
Here's a list of libraries that i have to link :
1. fftw-3.1.1 at /compiler/fftw3.1.1
2. fftw-2.1.5 at /compiler/fftw-2.1.5
3. acml3.1.0 at /compiler/acml3.1.0
acml3.1.0 uses pathcc and pathfortran , so that are to be linked
to enable the threading I have to include libfftw_threads.a and libpthread.a too
not able to make out whatCode:mpicc fourier_pc.o -I/compiler/fftw-3.1.1/include -I/compiler/fftw-2.1.5/include -L/usr/lib -L/compiler/fftw-3.1.1/lib -L/compiler/fftw-2.1.5/lib -L/compiler/acml3.1.0/pathscale64/lib -L/compiler/pathscale/lib/2.4 -lfftw3 -lacml -lacml_mv -lpathfortran -lfftw_threads -lpthread -lm /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc fourier_pc.o(.text+0x3b): In function `main': : undefined reference to `fftw_init_threads' fourier_pc.o(.text+0x11b): In function `main': : undefined reference to `fftw_plan_with_nthreads' fourier_pc.o(.text+0x1f1): In function `main': : undefined reference to `fftw_cleanup_threads' collect2: ld returned 1 exit status
[code]
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
[/code
really means..
pretty sure, those undefined references will go once the "libthread.a" is linked properly