From: Shankar A. <aga...@gm...> - 2012-03-30 19:11:21
|
Hi, I installed fftw-2.1.5 on macbook 10.6.8 by doing: fink install fftw-2.1.5 Then, In my makefile (for a cosmology code named Gadget), I have set the following paths: CC = mpicc OPTIMIZE = -O3 -Wall GSL_INCL = -I/sw/include GSL_LIBS = -L/sw/lib FFTW_INCL= -I/sw/include FFTW_LIBS= -L/sw/lib MPICHLIB = HDF5INCL = -I/sw/include HDF5LIB = -L/sw/lib -lhdf5 -lz While building my code, I get the following error: ld: warning: in /usr/local/lib/libsrfftw_mpi.a, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: in /usr/local/lib/libsfftw_mpi.a, file was built for unsupported file format which is not the architecture being linked (i386) Question: Why is it looking into /usr/local/lib instead of /sw/lib ? How may I solve the problem? Thanks Shankar |