[Ffmpeg-devel] Compiling avcodec_sample on windows

Hendrik Schmal Hendrik.Schmal
Thu Aug 11 16:20:14 CEST 2005

Am Donnerstag, 11. August 2005 16:10 schrieb Matni, Nikolai:
> 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

try this (in one commandline)
g++ -o avcodec_sample avcodec_sample.cpp
  -Ic:/ffmpeg/libavcodec -Ic:/ffmpeg/libavformat 
  -Lc:/ffmpeg/libavcodec -Lc:/ffmpeg/libavformat 
  -lavformat -lavcodec -lz

This should work.


> However, I can compile ffmpeg no problem, so I'm guessing there's something
> wrong with the tags that I have for g++.  I have ffmpeg installed in
> c:/ffmpeg.
> Thank you,
> Nikolai Matni
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list