ld: warning: in /usr/local/lib/libfftw3.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
fftwのlibraryを使ってコンパイルしようとすると、
g++ -o program -O3 program.cpp -Wall -lm -lfftw3
こんなエラーメッセージが。
ld: warning: in /usr/local/lib/libfftw3.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
どうやらこれはfinkが32bit版のた為に起っているらしい。
解決方法は
http://www.cycling74.com/forums/topic.php?id=26516
にある通り、
g++ -o program -O3 program.cpp -Wall -lm -lfftw3 -arch i386