Hi Carl,<br><br>Can you please tell me which all libraries I need to include while compiling one short program,<br><br> #include <stdio.h><br>    #include <stdlib.h><br>    #include "libavcodec/avcodec.h"<br>
    #include "libavformat/avformat.h"<br><br>    int main(int argc, char *argv[])<br>    {<br>        av_register_all();<br><br>        return 0;<br>    }<br><br>I have given this command -<br> <br>gcc -I/usr/src/ffmpegscript/ffmpeg/ test.c -lpthread -L/usr/src/ffmpegscript/mplayer/ffmpeg/libavformat/ -lavformat -L/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec/ -lavcodec -L/usr/src/ffmpegscript/mplayer/ffmpeg/libswscale/ -lswscale -L/usr/src/ffmpegscript/mplayer/ffmpeg/libavutil/ -lavutil -L/usr/local/cpffmpeg/lib/ -lmp3lame -lm -lz -ldl<br>
<br> I am still getting undefined references error.<br><br><br>undefined reference to `vorbis_analysis_buffer'<br>undefined reference to `D_IF_exit'<br>undefined reference to `Encoder_Interface_Encode'<br>undefined reference to `x264_picture_init'<br>
 undefined reference to `x264_param_default_preset'<br>undefined reference to `xvid_global'<br>undefined reference to `BZ2_bzDecompressInit'<br><br>Looking forward for your help.<br><br>Regards,<br>Thanks,<br>
Sangeeta<br><br><br><br><br><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 5:19 PM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">sangeeta chowdhary <sangitachowdhary@...> writes:<br>
<br>
> libmp3lame.c:(.text+0x4f): undefined reference to `lame_encode_flush'<br>
<br>
</div>Looks as if -lmp3lame is missing.<br>
<br>
Please do not top-post on this mailing list, it is considered<br>
rude, and please force your mailer to "text-only".<br>
<div class="HOEnZb"><div class="h5"><br>
Carl Eugen<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br>