[Ffmpeg-devel] include_next preprocessor problem
Kohn Emil Dan
Thu Jul 28 21:33:05 CEST 2005
A very ugly hack would be to place MSVC's standard include directory
before MingW's, i.e. assuming that MSVC is installed in:
C:\Program Files\Microsoft Visual Studio
and MinGW is installed under C:\MinGW,
make your include path as follows:
C:\Program Files\Microsoft Visual Studio\VC98\Include,C:\MingW\include
This way, MSVC will find its own stddef.h, istead of MinGW's and will not
enounter the gcc-specific #include_next directive.
A very ugly hack, but works.
On Tue, 26 Jul 2005, Behrbaum, Jeffrey S wrote:
> Hi all.
> Sorry to bother you again, but there is something I can't seem to figure out. OK. So I built ffmpeg using MSys and MinGW. Ran configure then make from the parent directory. Compiling a simple program, I include avcodec.h and get the following error:
> fatal error C1083: Cannot open include file: 'inttypes.h': No such file or directory
> Then I put the path to the MinGW include directory in my include path so that the inittypes.h required by ffmpeg's common.h is found, and now get the following error:
> c:\mingw\include\stddef.h(6) : fatal error C1021: invalid preprocessor command 'include_next'
> I know that the include_next directive is a valid gcc flag, but I was wondering if there is a way around this for a Win32 build? Thanks again to any and all for your time and help.
> P.S: I'm building on a Win2K SP2, VC++ 6.0 SP6
> //My example code
> #include <iostream>
> #include <string>
> extern "C"
> #include "avcodec.h"
> using namespace std;
> int main(int arg, char **argc)
> //Setting junk values. Just here for compile testing
> CodecID eCodecID = CODEC_ID_MPEG2VIDEO_XVMC;
> CodecType eCodeType = CODEC_TYPE_VIDEO;
> PixelFormat ePixFormat = PIX_FMT_GRAY8;
> Motion_Est_ID eMotionEstID = ME_EPZS;
> RcOverride strctOverRide;
> strctOverRide.qscale = 0;
> strctOverRide.end_frame = 0;
> strctOverRide.start_frame = 0;
> strctOverRide.quality_factor = 0.0;
> cout << "FFMEG Practice" << endl;
> cout << "Now cleanly exiting..." << endl;
> return EXIT_SUCCESS;
> }//End main
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
More information about the ffmpeg-devel