以前Visual c++の使いかた聞いたものです。
なんとか実行したいので
Linuxでやってみました。
すると
/tmp/ccW4i71F.o(.text+0x1a6): In function `main':
: undefined reference to `sqrt'
/tmp/ccW4i71F.o(.text+0x348): In function `dft':
: undefined reference to `cos'
/tmp/ccW4i71F.o(.text+0x382): In function `dft':
: undefined reference to `sin'
・・・
collect2: ld はステータス 1 で終了しました
と出てきました。
Visualのときはビルドはできてましたし、#include <math.h>も
プログラムに入っているのでこの理由がわかりません。
誰か教えてください。お願いします。