[Libav-user] Compile with g++

Michael Chisholm chisholm at mitre.org
Mon Oct 7 23:38:47 CEST 2013


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




More information about the Libav-user mailing list