使用FFTW架构x86_64的取消定义的符号 [英] Undefine symbols for architecture x86_64 using FFTW
本文介绍了使用FFTW架构x86_64的取消定义的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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?
推荐答案
它告诉你,你忘了用 -L
和 -l
来告诉GCC哪里FFTW库并且他们叫什么。
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.
这篇关于使用FFTW架构x86_64的取消定义的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文