![]() The compiler takes a source file (eg, example.cpp) and outputs an object file (such as example.o). (They could perhaps be broken down further, but that's the important distinction here.) The most basic breakdown is into compiling and linking. Well, when you build your project, there are several stages to go through. (Note that my XCode is old, so it may be slightly different for your version.) Instead of putting these under "Other C/C++ Flags", they should go under "Other Linker Flags" (in the Linking section). L/usr/local/lib -lfftw3 -lsndfile main.c -o fft_sample ![]() gcc -I/Users/sr2/Documents/Soft/fftw-3.3.4 -I/usr/local/include Ld: symbol(s) not found for architecture x86_64Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation)īut if I compile with gcc in command line, it works well. "_fftw_plan_dft_r2c_1d", referenced from: Undefined symbols for architecture x86_64: ![]() Here is the error log: clang: warning: -lsndfile: 'linker' input unusedĬlang: warning: -lfftw3: 'linker' input unusedĬlang: warning: argument unused during compilation: '-L/usr/local/lib' ![]() I faced with the same issue for this question: Undefine symbols for architecture x86_64 using FFTWĪnd I tried to use flag -L and -l for C++ in xcode, but it doesn't work
0 Comments
Leave a Reply. |