[vorbis-dev] Compiling

Michael Smith msmith at labyrinth.net.au
Thu Sep 12 00:36:39 PDT 2002



At 08:23 PM 9/11/02 -0600, you wrote:
>I am trying to compile the example code for vorbis files and I am getting an 
>undefined reference, below is my Makefile, any ideas on what is wrong?
>
>OBJS=ogg.o
>
>ogg: $(OBJS)
>        cc -o ogg $(OBJS) -L/usr/local/lib -lm -lc -lvorbis
>
>ogg.o: ogg.c
>        cc -I/usr/local/include -c ogg.c
>
>clean:
>        rm -f $(OBJS)

Since you've neglected to say what your code does, it's hard to tell,
but you need to link to at least libogg (i.e. add -logg), and possibly
either or both of libvorbisfile and libvorbisenc (-lvorbisfile -lvorbisenc)

Mike

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list