[freespace2] Help make error
Taylor Richards
mtrs at bellsouth.net
Sat Apr 26 22:11:47 EDT 2003
On Sat, 2003-04-26 at 22:02, Samuel wrote:
> Hi
>
> Got latest cvs
> patch it with pitch_pan.patch
>
> did make clean & make and got
>
> g++ -c -o src/sound/sound.o src/sound/sound.cpp -Wall -g -DPLAT_UNIX
> -I/usr/include/SDL -D_REENTRANT -Iinclude/ -Wno-missing-braces
> -Wno-multichar -fsigned-char -DRELEASE_REAL
> g++ -c -o src/sound/audiostr.o src/sound/audiostr.cpp -Wall -g
> -DPLAT_UNIX -I/usr/include/SDL -D_REENTRANT -Iinclude/
> -Wno-missing-braces -Wno-multichar -fsigned-char -DRELEASE_REAL
> src/sound/audiostr.cpp: In function `void audiostream_init()':
> src/sound/audiostr.cpp:1550: warning: unused variable `int i'
> src/sound/audiostr.cpp: In function `void audiostream_close()':
> src/sound/audiostr.cpp:1617: warning: unused variable `int i'
> src/sound/audiostr.cpp: In function `void audiostream_unpause(int)':
> src/sound/audiostr.cpp:1996: warning: unused variable `int is_looping'
> g++ -c -o src/sound/ds.o src/sound/ds.cpp -Wall -g -DPLAT_UNIX
> -I/usr/include/SDL -D_REENTRANT -Iinclude/ -Wno-missing-braces
> -Wno-multichar -fsigned-char -DRELEASE_REAL
> src/sound/ds.cpp: In function `int ds_get_pitch(int)':
> src/sound/ds.cpp:2877: implicit declaration of function `int pow10(...)'
> make: *** [src/sound/ds.o] Error 1
>
> Sam
Change that line (2877) from this:
pitch = fl2i( pow10(tmp_pitch + 2.0) );
to this:
pitch = fl2i( pow(10.0, (tmp_pitch + 2.0) );
and see if that If it doesn't compile then let me know.
Taylor
--
Taylor Richards <mtrs at bellsouth.net>
More information about the freespace2
mailing list