hi all:<br>&nbsp;&nbsp;&nbsp; i downloaded libtheora1.0.tar.gz&nbsp; from <a href="http://xiph.org" target="_blank">xiph.org</a>, and when i compile it, such error message popped.<br><br>i tried to run player_example.c under /libtheora_1.0/examples/.<br>
error message:<br><br>ivysummer@ivysummer-desktop:~/×ÀÃæ/libtheora-1.0/examples$ gcc -o player player_example.c<br>/tmp/ccpyle3c.o: In function `buffer_data&#39;:<br>player_example.c:(.text+0x15): undefined reference to `ogg_sync_buffer&#39;<br>
player_example.c:(.text+0x4f): undefined reference to `ogg_sync_wrote&#39;<br>/tmp/ccpyle3c.o: In function `open_video&#39;:<br>player_example.c:(.text+0x7a5): undefined reference to `SDL_Init&#39;<br>player_example.c:(.text+0x7ae): undefined reference to `SDL_GetError&#39;<br>
player_example.c:(.text+0x7fc): undefined reference to `SDL_SetVideoMode&#39;<br>player_example.c:(.text+0x80f): undefined reference to `SDL_GetError&#39;<br>player_example.c:(.text+0x873): undefined reference to `SDL_CreateYUVOverlay&#39;<br>
player_example.c:(.text+0x886): undefined reference to `SDL_GetError&#39;<br>player_example.c:(.text+0x8e9): undefined reference to `SDL_DisplayYUVOverlay&#39;<br>/tmp/ccpyle3c.o: In function `video_write&#39;:<br>player_example.c:(.text+0x909): undefined reference to `theora_decode_YUVout&#39;<br>
player_example.c:(.text+0x932): undefined reference to `SDL_LockSurface&#39;<br>player_example.c:(.text+0x947): undefined reference to `SDL_LockYUVOverlay&#39;<br>player_example.c:(.text+0xaf8): undefined reference to `SDL_UnlockSurface&#39;<br>
player_example.c:(.text+0xb05): undefined reference to `SDL_UnlockYUVOverlay&#39;<br>player_example.c:(.text+0xb1a): undefined reference to `SDL_DisplayYUVOverlay&#39;<br>/tmp/ccpyle3c.o: In function `queue_page&#39;:<br>
player_example.c:(.text+0xce4): undefined reference to `ogg_stream_pagein&#39;<br>player_example.c:(.text+0xd00): undefined reference to `ogg_stream_pagein&#39;<br>/tmp/ccpyle3c.o: In function `main&#39;:<br>player_example.c:(.text+0xe17): undefined reference to `ogg_sync_init&#39;<br>
player_example.c:(.text+0xe23): undefined reference to `vorbis_info_init&#39;<br>player_example.c:(.text+0xe2f): undefined reference to `vorbis_comment_init&#39;<br>player_example.c:(.text+0xe3b): undefined reference to `theora_comment_init&#39;<br>
player_example.c:(.text+0xe47): undefined reference to `theora_info_init&#39;<br>player_example.c:(.text+0xe86): undefined reference to `ogg_page_bos&#39;<br>player_example.c:(.text+0xeb1): undefined reference to `ogg_page_serialno&#39;<br>
player_example.c:(.text+0xec3): undefined reference to `ogg_stream_init&#39;<br>player_example.c:(.text+0xed9): undefined reference to `ogg_stream_pagein&#39;<br>player_example.c:(.text+0xef1): undefined reference to `ogg_stream_packetout&#39;<br>
player_example.c:(.text+0xf18): undefined reference to `theora_decode_header&#39;<br>player_example.c:(.text+0xf6d): undefined reference to `vorbis_synthesis_headerin&#39;<br>player_example.c:(.text+0xfa9): undefined reference to `ogg_stream_clear&#39;<br>
player_example.c:(.text+0xfbd): undefined reference to `ogg_sync_pageout&#39;<br>player_example.c:(.text+0x102f): undefined reference to `theora_decode_header&#39;<br>player_example.c:(.text+0x10a2): undefined reference to `ogg_stream_packetout&#39;<br>
player_example.c:(.text+0x1112): undefined reference to `vorbis_synthesis_headerin&#39;<br>player_example.c:(.text+0x1187): undefined reference to `ogg_stream_packetout&#39;<br>player_example.c:(.text+0x11ae): undefined reference to `ogg_sync_pageout&#39;<br>
player_example.c:(.text+0x1265): undefined reference to `theora_decode_init&#39;<br>player_example.c:(.text+0x13a6): undefined reference to `theora_control&#39;<br>player_example.c:(.text+0x13d8): undefined reference to `theora_control&#39;<br>
player_example.c:(.text+0x13f0): undefined reference to `theora_info_clear&#39;<br>player_example.c:(.text+0x13fc): undefined reference to `theora_comment_clear&#39;<br>player_example.c:(.text+0x1419): undefined reference to `vorbis_synthesis_init&#39;<br>
player_example.c:(.text+0x142d): undefined reference to `vorbis_block_init&#39;<br>player_example.c:(.text+0x146e): undefined reference to `vorbis_info_clear&#39;<br>player_example.c:(.text+0x147a): undefined reference to `vorbis_comment_clear&#39;<br>
player_example.c:(.text+0x14cf): undefined reference to `vorbis_synthesis_pcmout&#39;<br>player_example.c:(.text+0x157d): undefined reference to `rint&#39;<br>player_example.c:(.text+0x1646): undefined reference to `vorbis_synthesis_read&#39;<br>
player_example.c:(.text+0x1700): undefined reference to `ogg_stream_packetout&#39;<br>player_example.c:(.text+0x171e): undefined reference to `vorbis_synthesis&#39;<br>player_example.c:(.text+0x1736): undefined reference to `vorbis_synthesis_blockin&#39;<br>
player_example.c:(.text+0x176b): undefined reference to `ogg_stream_packetout&#39;<br>player_example.c:(.text+0x17b4): undefined reference to `theora_control&#39;<br>player_example.c:(.text+0x17f7): undefined reference to `theora_control&#39;<br>
player_example.c:(.text+0x180d): undefined reference to `theora_decode_packetin&#39;<br>player_example.c:(.text+0x184a): undefined reference to `theora_granule_time&#39;<br>player_example.c:(.text+0x1930): undefined reference to `ogg_sync_pageout&#39;<br>
player_example.c:(.text+0x1d30): undefined reference to `SDL_Quit&#39;<br>player_example.c:(.text+0x1d45): undefined reference to `ogg_stream_clear&#39;<br>player_example.c:(.text+0x1d51): undefined reference to `vorbis_block_clear&#39;<br>
player_example.c:(.text+0x1d5d): undefined reference to `vorbis_dsp_clear&#39;<br>player_example.c:(.text+0x1d69): undefined reference to `vorbis_comment_clear&#39;<br>player_example.c:(.text+0x1d75): undefined reference to `vorbis_info_clear&#39;<br>
player_example.c:(.text+0x1d8a): undefined reference to `ogg_stream_clear&#39;<br>player_example.c:(.text+0x1d96): undefined reference to `theora_clear&#39;<br>player_example.c:(.text+0x1da2): undefined reference to `theora_comment_clear&#39;<br>
player_example.c:(.text+0x1dae): undefined reference to `theora_info_clear&#39;<br>player_example.c:(.text+0x1dba): undefined reference to `ogg_sync_clear&#39;<br>collect2: ld ·µ»Ø 1<br><br clear="all">i&#39;ve search in google but there is no suitable answer. could someone tell me how could i solve this problem? thanks.<br>
-- <br>Bowen Ma a.k.a Samuel Kevin @ Bluesky Dev Team &nbsp; &nbsp;XJTU<br>Shaanxi Province Key Lab. of Satellite and Terrestrial Network Tech<br>
<a href="http://incubator.apache.org/bluesky/" target="_blank">http://incubator.apache.org/bluesky/</a><br>