You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am getting compiler errors when trying to run the bench.c file in Mac terminal.
I have the fftw3 library installed via pkg-config and I did "cmake cmakelists.txt". But I did not quite understand how should I use add_subdirectory (I am pretty new to programming and cmake). Any help would be appreciated!!
The errors I got is as shown:
$ gcc bench.c
Undefined symbols for architecture x86_64:
"_fftwf_cleanup", referenced from:
_main in bench-932cdf.o
_main in test-e97c1e.o
"_fftwf_destroy_plan", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_execute", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_free", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_malloc", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_plan_dft_1d", referenced from:
_bench_fftw_1d in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
"_fftwf_plan_dft_2d", referenced from:
_bench_fftw_2d in bench-932cdf.o
_test_fft_2d in test-e97c1e.o
"_fftwf_plan_dft_c2r_1d", referenced from:
_bench_fftw_1d_real in bench-932cdf.o
_test_fft_1d_c2r in test-e97c1e.o
"_fftwf_plan_dft_c2r_2d", referenced from:
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_2d_c2r in test-e97c1e.o
"_fftwf_plan_dft_r2c_1d", referenced from:
_bench_fftw_1d_real in bench-932cdf.o
_test_fft_1d_r2c in test-e97c1e.o
_test_fft_1d_r2c_half in test-e97c1e.o
"_fftwf_plan_dft_r2c_2d", referenced from:
_bench_fftw_2d_r2c in bench-932cdf.o
_test_fft_2d_r2c in test-e97c1e.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered:
Hi, I am getting compiler errors when trying to run the bench.c file in Mac terminal.
I have the fftw3 library installed via pkg-config and I did "cmake cmakelists.txt". But I did not quite understand how should I use add_subdirectory (I am pretty new to programming and cmake). Any help would be appreciated!!
The errors I got is as shown:
$ gcc bench.c
Undefined symbols for architecture x86_64:
"_fftwf_cleanup", referenced from:
_main in bench-932cdf.o
_main in test-e97c1e.o
"_fftwf_destroy_plan", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_execute", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_free", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_malloc", referenced from:
_bench_fftw_1d in bench-932cdf.o
_bench_fftw_1d_real in bench-932cdf.o
_bench_fftw_2d in bench-932cdf.o
_bench_fftw_2d_r2c in bench-932cdf.o
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
_test_fft_1d_r2c in test-e97c1e.o
...
"_fftwf_plan_dft_1d", referenced from:
_bench_fftw_1d in bench-932cdf.o
_test_fft_1d in test-e97c1e.o
"_fftwf_plan_dft_2d", referenced from:
_bench_fftw_2d in bench-932cdf.o
_test_fft_2d in test-e97c1e.o
"_fftwf_plan_dft_c2r_1d", referenced from:
_bench_fftw_1d_real in bench-932cdf.o
_test_fft_1d_c2r in test-e97c1e.o
"_fftwf_plan_dft_c2r_2d", referenced from:
_bench_fftw_2d_c2r in bench-932cdf.o
_test_fft_2d_c2r in test-e97c1e.o
"_fftwf_plan_dft_r2c_1d", referenced from:
_bench_fftw_1d_real in bench-932cdf.o
_test_fft_1d_r2c in test-e97c1e.o
_test_fft_1d_r2c_half in test-e97c1e.o
"_fftwf_plan_dft_r2c_2d", referenced from:
_bench_fftw_2d_r2c in bench-932cdf.o
_test_fft_2d_r2c in test-e97c1e.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: