>But if you're compiling pure C code, why not use a C compiler?

I'm trying to build a video editor with QT, which is implemented
in C++, on Linux.  I guess I could code my interface functions in C, then
compile that into a static library, then link that into the C++/QT 
program which implements the video editor.  Is there any easier way?  Can
I call the libav routines directly from the C++ program?  I have
plenty of experience with C, but I'm a novice at C++, so there might
be a real easy answer to this question.

Thanks.



On Monday, October 7, 2013 5:39 PM, Michael Chisholm <chish...@mitre.org> wrote:
 
On 10/7/2013 5:31 PM, James Board wrote:
> I'm trying to incorporate the libav subroutines into a C++ program.  Has this 
> been
> done?  When I try to compile, I get lots of errors like UINT64_c undefined and
> many others.  How difficult would it be to compile the examples in the 
> doc/examples
> directory with a C++ compiler?
>

I use libav from a C++ program.  I worked around that error about type 
macros by adding:

CXXFLAGS += -D__STDC_CONSTANT_MACROS

But if you're compiling pure C code, why not use a C compiler?

Andy



_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to