Originally posted by cmokruhl
The fun continues... With both #defines commented out (there are two in replaygain.c), I get this new error. Let me ask again: is
http://sjeng.sourceforge.net/ftp/vorbis/Vo...ain-0.20.tar.gz the right source code?
craig@miata> make
gcc -O2 -g --fast-math -Wall -c -o replaygain.o replaygain.c
gcc -O2 -g --fast-math -Wall -c -o vcedit.o vcedit.c
gcc -O2 -g --fast-math -Wall -c -o gain_analysis.o gain_analysis.c
gain_analysis.c:134: warning: ignoring pragma:
gain_analysis.c:184: warning: ignoring pragma:
gcc -O2 -g --fast-math -Wall -c -o misc.o misc.c
gcc -lm -lvorbis -lvorbisfile -o vorbisgain replaygain.o vcedit.o gain_analysis.o misc.o
replaygain.o: In function `get_gain':
/tmp/vorbis/replaygain/replaygain.c:339: undefined reference to `ov_read_float'
collect2: ld returned 1 exit status
make: *** [vorbisgain] Error 1
Seems like you have an old version of libvorbis around somewhere. Make sure you link with RC3 (you seem to have the right headers installed though). Earlier versions of libvorbis might work; I don't know exactly when ov_read_float was added.
Otherwise it should work. Not that you're using the very latest version of VorbisGain, but newer versions haven't been made generally available yet (partially because it uses a new tag format, and the XMMS patch at