<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div>>But if you're compiling pure C code, why not use a C compiler?</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;"><span><br></span></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;"><span>I'm trying to build a video editor with QT, which is implemented<br>in C++, on Linux.  I guess I could code my interface functions in C, then<br>compile that into a static library, then link that into the C++/QT <br>program which implements the video editor.  Is there any easier way?  Can<br>I call the libav
 routines directly from the C++ program?  I have<br>plenty of experience with C, but I'm a novice at C++, so there might<br>be a real easy answer to this question.<br><br>Thanks.</span></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 Monday, October 7, 2013 5:39 PM, Michael Chisholm <chisholm@mitre.org> wrote:<br> </font> </div>  <div class="y_msg_container">On 10/7/2013 5:31 PM, James Board wrote:<br clear="none">> I'm trying to incorporate the libav subroutines into a C++ program.  Has this been<br clear="none">> done?  When I try to compile, I get lots of errors like UINT64_c undefined and<br clear="none">> many
 others.  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"><br clear="none">I use libav from a C++ program.  I worked around that error about type <br clear="none">macros by adding:<br clear="none"><br clear="none">CXXFLAGS += -D__STDC_CONSTANT_MACROS<br clear="none"><br clear="none">But if you're compiling pure C code, why not use a C compiler?<br clear="none"><br clear="none">Andy<div class="yqt8731390691" id="yqtfd36795"><br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">Libav-user mailing list<br clear="none"><a shape="rect" ymailto="mailto:Libav-user@ffmpeg.org" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br clear="none"><a shape="rect" href="http://ffmpeg.org/mailman/listinfo/libav-user"
 target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></body></html>