Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler errors #2

Open
cynthiayechen opened this issue May 10, 2019 · 0 comments
Open

compiler errors #2

cynthiayechen opened this issue May 10, 2019 · 0 comments

Comments

@cynthiayechen
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant