Dsplib / libdspl-2.0

libdspl-2.0 is opensource cross-platform digital signal processing algorithm library, written in C language.
GNU Lesser General Public License v3.0
91 stars 27 forks source link

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 closed 3 months ago

barracuda156 commented 4 months ago
  /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 commented 4 months ago

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