Re: 請問c中的pow() - BBS

Table of Contents

※ 引述《[email protected] (點點)》之銘言:
: 我把舊的在linux上面的c程式拿到freebsd上重新編譯
: 但碰到pow()卻說沒這個函式,請問高手如何解決呢
compile的時候加上 -lm
用來link libmath

gcc -lm -o foo foo.c

--

All Comments