I downloaded libogg-1.1.2 and libvorbis-1.1.0, and want to compile them
using mingw32.
In libogg-1.1.2 directory, 'sh configure --prefix=/mingw' and
'make' and
'make install' works smoothly. It create libogg.a, ligogg.dll.a,
libogg.la in my /mingw/lib and header files in /mingw/include/ogg, so I
think the gcc compiler will find them easily.
After switching to libvorbis-1.1.0 directory, I run 'sh configure
-prefix=/mingw' and it works ok. The problem occurs when the 'make'
command proceed to the link stage. Error message says:
/bin/sh ../libtool --mode=link gcc -O20 -D__NO_MATH_INLINES
-fsigned-char -DUSE_MEMORY_H -o libvorbisfile.la -rpath /mingw/lib
-no-undefined -version-info 4:0:1 vorbisfile.lo libvorbis.la
rm -fr .libs/libvorbisfile.dll.a
gcc -shared .libs/vorbisfile.o -L/mingw/lib ./.libs/libvorbis.dll.a
-o .libs/libvorbisfile-3.dll -Wl,--image-base=0x10000000
-Wl,--out-implib,.libs/libvorbisfile.dll.a
Creating library file: .libs/libvorbisfile.dll.a
.libs/vorbisfile.o(.text+0xcd):vorbisfile.c: undefined reference to
`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x16b):vorbisfile.c: undefined reference to
`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x23e):vorbisfile.c: undefined reference to
`ogg_sync_reset'
.libs/vorbisfile.o(.text+0x29b):vorbisfile.c: undefined reference to
`ogg_sync_reset'
.libs/vorbisfile.o(.text+0x314):vorbisfile.c: undefined reference to
`ogg_stream_clear'
.libs/vorbisfile.o(.text+0x39e):vorbisfile.c: undefined reference to
`ogg_sync_clear'
.libs/vorbisfile.o(.text+0x6a9):vorbisfile.c: undefined reference to
`ogg_stream_reset_serialno'
.libs/vorbisfile.o(.text+0x6f6):vorbisfile.c: undefined reference to
`ogg_stream_init'
.libs/vorbisfile.o(.text+0x6fe):vorbisfile.c: undefined reference to
`ogg_stream_reset'
.libs/vorbisfile.o(.text+0x71c):vorbisfile.c: undefined reference to
`ogg_stream_packetout'
.libs/vorbisfile.o(.text+0x748):vorbisfile.c: undefined reference to
`ogg_stream_packetout'
.libs/vorbisfile.o(.text+0x784):vorbisfile.c: undefined reference to
`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x7be):vorbisfile.c: undefined reference to
`ogg_stream_clear'
.libs/vorbisfile.o(.text+0x7d2):vorbisfile.c: undefined reference to
`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x80f):vorbisfile.c: undefined reference to
`ogg_stream_reset_serialno'
.libs/vorbisfile.o(.text+0x821):vorbisfile.c: undefined reference to
`ogg_stream_reset_serialno'
.libs/vorbisfile.o(.text+0x83a):vorbisfile.c: undefined reference to
`ogg_stream_pagein'
.libs/vorbisfile.o(.text+0x849):vorbisfile.c: undefined reference to
`ogg_stream_pagein'
.
.
.
It seems it cannot find libogg to link with. What arguments should I
tell libvorbis's configure to make /mingw/libogg* accessible to it?
Thanks in advance.