使用FFTW为架构x86_64取消定义符号

时间:2013-11-30 11:59:28

标签: c fftw

Ceeloss-MacBook-Pro:desktop ceelos$ gcc -o prog -I/usr/local/include test.c
Undefined symbols for architecture x86_64:
  "_fftw_destroy_plan", referenced from:
      _main in test-IBqBdS.o
  "_fftw_execute", referenced from:
      _main in test-IBqBdS.o
  "_fftw_plan_dft_1d", referenced from:
      _main in test-IBqBdS.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ceeloss-MacBook-Pro:desktop ceelos$ 


这告诉我什么?

1 个答案:

答案 0 :(得分:4)

它告诉您,您忘记使用-L-l来告诉gcc FFTW库的位置以及它们的名称。