[Ffmpeg-devel] include_next preprocessor problem

Behrbaum, Jeffrey S jeffrey.s.behrbaum
Tue Jul 26 20:23:55 CEST 2005


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.

Jeff

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





More information about the ffmpeg-devel mailing list