[Ffmpeg-devel] Compiling avcodec_sample on windows

Martin Boehme boehme
Thu Aug 11 16:21:36 CEST 2005

Matni, Nikolai wrote:
> Hi,
> I'm having a small problem compiling the avcodec_sample.cpp file provided on Martin Bohme's website.  I'm using g++ on MINGW32 to try to compile the file.
> I get the following error msg:
> $ g++ -o avcodec_sample avcodec_sample.cpp -Ic:/ffmpeg -Ic:/ffmpeg/libavcodec -
> Ic:/ffmpeg/libavformat -Lavformat -Lavcodec -Lz
[snip linker errors]

Try "-lavformat -lavcodec" instead. ("-L" is for the library path, "-l" 
is for the libraries you want to link with)


Martin B?hme
Inst. f. Neuro- and Bioinformatics
Ratzeburger Allee 160, D-23538 Luebeck
Phone: +49 451 500 5514
Fax:   +49 451 500 5502
boehme at inb.uni-luebeck.de

More information about the ffmpeg-devel mailing list