include_next preprocessor problem
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
Hi On Tuesday 26 July 2005 20:23, 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
well, thats a standard header if its not found then theres something messed up on your side, this is not ffmpeg related
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'
again its a error in a mingw header not ffmpeg -- Michael
On 7/26/05, Behrbaum, Jeffrey S <jeffrey.s.behrbaum at boeing.com> 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
Try defining EMULATE_INTTYPES in your vc++ project?
Hi, 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. Emil 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.
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
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
participants (4)
-
emild@cs.technion.ac.il -
ffmpeg.php@gmail.com -
jeffrey.s.behrbaum@boeing.com -
michaelni@gmx.at