[Matroska-devel] Re: Problem compiling mplayer under cygwin/mingw with Matroska support

ChristianHJW christian at matroska.org
Thu Oct 16 08:52:02 CEST 2003


Hi,

we will try to put this on our homepage also, great work !!

Christian

Goodwu wrote:
> gcc -c -O4 -march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_LARG
> EFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__CYGWIN__ -I../loader  -I/usr/local/inclu
> de      -o demux_mkv.o demux_mkv.cpp
> In file included from /usr/include/c++/3.3.1/cctype:49,
>                  from /usr/include/c++/3.3.1/iosfwd:47,
>                  from /usr/include/c++/3.3.1/bits/stl_algobase.h:70,
>                  from /usr/include/c++/3.3.1/vector:67,
>                  from demux_mkv.cpp:29:
> /usr/include/ctype.h:39: error: parse error before `)' token
> In file included from /usr/include/errno.h:9,
>                  from /usr/include/c++/3.3.1/cerrno:48,
>                  from /usr/local/include/ebml/StdIOCallback.h:41,
>                  from demux_mkv.cpp:36:
> /usr/include/sys/errno.h:20: error: parse error before `)' token
> /usr/include/sys/errno.h:21: error: parse error before `)' token
> /usr/include/sys/errno.h:23: error: parse error before `)' token
> /usr/include/sys/errno.h:24: error: parse error before `)' token
> make: *** [demux_mkv.o] Error 1
> make: Leaving directory `/home/www/main-cygwin/libmpdemux'
> 
> How to fix:
> Move the following lines to the beginning of demux_mkv.cpp:
> 
> #include <vector>
> 
> #include <ebml/EbmlHead.h>
> #include <ebml/EbmlSubHead.h>
> #include <ebml/EbmlStream.h>
> #include <ebml/EbmlContexts.h>
> #include <ebml/EbmlVersion.h>
> #include <ebml/StdIOCallback.h>
> 
> #include <matroska/KaxAttachments.h>
> #include <matroska/KaxBlock.h>
> #include <matroska/KaxBlockData.h>
> #include <matroska/KaxChapters.h>
> #include <matroska/KaxCluster.h>
> #include <matroska/KaxClusterData.h>
> #include <matroska/KaxContexts.h>
> #include <matroska/KaxCues.h>
> #include <matroska/KaxCuesData.h>
> #include <matroska/KaxInfo.h>
> #include <matroska/KaxInfoData.h>
> #include <matroska/KaxSeekHead.h>
> #include <matroska/KaxSegment.h>
> #include <matroska/KaxTracks.h>
> #include <matroska/KaxTrackAudio.h>
> #include <matroska/KaxTrackVideo.h>
> #include <matroska/KaxTrackEntryData.h>
> #include <matroska/FileKax.h>





More information about the Matroska-devel mailing list