<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div>>demuxing.c is a C program, if you want to compile it <br>>with C++ (why?) you will have to convert it to C++, <br>>just as with any other C program.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Yes,
I know it's a program written in C. As I stated before, I only used
that example because everyone here already has a copy of it. The
alternative would be for me to post my lengthy C++ code, which uses lots
of third-party libraries, which nobody will be able to compile anyway). <br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">When
I
compile demuxing.c with g++ it gives me the same errors as when I add
libav calls to my C++ app and then try to compile that with g++. So, if
we can figure out why demuxing.c won't compile with g++, then we will
probably figure out why my C++ app won't compile with g++. <br clear="none"></div> <div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">>(Nothing about this is FFmpeg specific.)<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">This is the libav mailing list, not the fmpeg mailing
list The issue is</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">how to add libav calls to a c++ program.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br>>Carl Eugen</div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On , James Board <jpboard2@yahoo.com> wrote:<br> </font> </div> <div class="y_msg_container"><div id="yiv6146447824"><div><div
style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"><div>>That's an example program written in C. There's nothing in the actual
codebase (as opposed to the >examples) that doesn't work in C++.</div><div><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">Yes, I know it's a program written in C. As I stated before, I only used that example because everyone here already has a copy of it. The alternative would be for me to post my lengthy C++ code, which uses lots of thrid-part libraries, which nobody will be able to compile anyway).</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal;">When I
compile demuxing.c with g++ it gives me the same errors as when I add libav calls to my C++ app and then try to compile that with g++. So, if we can figure out why demuxing.c won't compile with g++, then we will probably figure out why my C++ app won't compile with g++. <br clear="none"></div><div class="yiv6146447824yahoo_quoted" style="display:block;"> <br clear="none"> <br clear="none"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div class="yiv6146447824yqt1110737982" id="yiv6146447824yqt44205"><div dir="ltr"> <font face="Arial" size="2"> On Tuesday, October 8, 2013 9:25 PM, Bruce Wheaton <bruce@spearmorgan.com> wrote:<br clear="none"> </font> </div> <div class="yiv6146447824y_msg_container"><div id="yiv6146447824"><div><div><div
class="yiv6146447824yqt6336215157" id="yiv6146447824yqtfd20819"><div>On Oct 8, 2013, at 11:12 AM, James Board <<a rel="nofollow" shape="rect" ymailto="mailto:jpboard2@yahoo.com" target="_blank" href="mailto:jpboard2@yahoo.com">jpboard2@yahoo.com</a>> wrote:</div><blockquote type="cite"><div><div style="background-color:rgb(255, 255, 255);font-family:'times new roman', 'new york', times, serif;font-size:12pt;"><div style=""><br clear="none"></div><div style="">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;font-size:16px;">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;font-size:16px;">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;font-size:16px;">compiler in Linux?</div>
<div style="background-color:transparent;font-style:normal;font-family:'times new roman', 'new york', times, serif;font-size:16px;"><var id="yiv6146447824yui-ie-cursor"></var> </div></div></div></blockquote></div><br clear="none"></div><div>That's an example program written in C. There's nothing in the actual codebase (as opposed to the examples) that doesn't work in C++.</div><div><br clear="none"></div><div>Compile a C example as C. </div><div><br clear="none"></div><div>Bruce</div><div class="yiv6146447824yqt6336215157" id="yiv6146447824yqtfd73409"><br clear="none"></div></div></div><br clear="none">_______________________________________________<br clear="none">Libav-user mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:Libav-user@ffmpeg.org" target="_blank" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank"
href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><div class="yiv6146447824yqt6336215157" id="yiv6146447824yqtfd13070"><br clear="none"></div><br clear="none"><br clear="none"></div></div> </div> </div> </div> </div></div></div><br><br></div> </div> </div> </div> </div></body></html>