Undefine symbols for architecture x86_64 using FFTW

我是研究僧i 提交于 2019-12-06 14:11:28

问题


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$ 


What's this telling me?


回答1:


It's telling you that you forgot to use -L and -l to tell gcc where the FFTW libraries are and what they're called.



来源:https://stackoverflow.com/questions/20299961/undefine-symbols-for-architecture-x86-64-using-fftw

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!