<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto">>"How difficult would it be to compile the examples in the doc/examples<BR clear=none>>directory with a C++ compiler?"<BR clear=none>><BR clear=none>>Those are C programs, so just use a C compiler for them. That's all I <BR style="RIGHT: auto" clear=none>>meant.<BR clear=none></div>
<div style="RIGHT: auto">Okay, I understand. Yes they are just C programs, so I can compile with</div>
<div style="RIGHT: auto">the C compiler. But my C++ programs with libav subroutine calls won't</div>
<div style="RIGHT: auto">compile and the error messages I receive are the same as when I try to compile</div>
<div style="RIGHT: auto">the doc/examples with C++. So, rather then posting my C++ code, it's easier</div>
<div style="RIGHT: auto">to debug the problems by merely trying to compile the doc/examples with the</div>
<div style="RIGHT: auto">C++ compiler</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">>So I just added it myself, around my C includes:<BR clear=none>><BR clear=none>>extern "C" {<BR clear=none>>#include "libavformat/avformat.h"<BR clear=none>>etc...<BR clear=none>>}<BR clear=none><BR style="RIGHT: auto" clear=none>I tried exactly that with the demuxing.c example. When I try to compile</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto">it with the C++ compiler, I get errors. When I compile with the C compiler,</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto">no errors. What do I need to do to get demuxing.c to compile with the C++</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto">compiler in Linux?</div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><VAR id=yui-ie-cursor></VAR> </div></div></body></html>