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

Build error: fft_cmplx.c:192:12: error: call to undeclared function 'fft_krn'; ISO C99 and later do not support implicit function declarations #8

Closed
barracuda156 opened this issue Jun 10, 2024 · 1 comment

Comments

@barracuda156
Copy link

  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_science_dspl/dspl/work/compwrap/cc/usr/bin/clang -c -fPIC -Wall -O3 -I../include -Isrc -DBUILD_LIB -DLINUX_OS  src/dft/fft_free.c -o obj/fft_free.o -lm 
  clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
  clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
  src/dft/fft_cmplx.c:192:12: error: call to undeclared function 'fft_krn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      return fft_krn(pfft->t1, y, pfft, n, 0);
             ^
  1 error generated.
  make[1]: *** [obj/fft_cmplx.o] Error 1
  make[1]: *** Waiting for unfinished jobs....

Is there some header missing?

gcc-13 still builds it, spitting out a warning; clang just fails.

@ryandesign
Copy link
Contributor

Specifically, Apple clang 12 and later and llvm.org clang 16 and later consider this to be an error.

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

2 participants