From: Eli Z. <el...@gn...> - 2012-02-26 16:48:15
|
> From: Me Myself and I <sta...@li...> > Date: Sun, 26 Feb 2012 15:54:57 +1100 > > Are there any mingw32 people who know what I need to do to my /lib/cpp to get it behaving better? There's no /lib/cpp in MinGW, so don't waste your time looking for it or trying to build it. There even isn't a certainty at this point that the problem you had trying to build GMP was due to the preprocessor; it could well be something entirely different. > The advice I have so far doesn't help Did you try to compile the test program manually, like I suggested? If you did, what were the results? If you didn't, please do, as I'm quite sure this is the right way of finding the root cause for your trouble. Once again, here are the steps I suggest, with some more details this time: . Copy the offending test program to a file named conftest.c. For your convenience, I attach the file's contents at the end of this message. . Open a Windows Command Prompt window (note: NOT the MSYS shell window! the "normal" Command Prompt window with the default Windows shell, cmd.exe. . Go to the directory where you put conftest.c and type these commands: gcc -std=gnu99 -E conftest.c echo %ERRORLEVEL% . The second command must be typed immediately after the first. . Copy/paste the output into a mail message and post the results here. Here's the test program again, just copy text between the two "----" dividers and save to a file: --------------------------------------------- /* confdefs.h */ #define PACKAGE_NAME "GNU MP" #define PACKAGE_TARNAME "gmp" #define PACKAGE_VERSION "5.0.4" #define PACKAGE_STRING "GNU MP 5.0.4" #define PACKAGE_BUGREPORT "gmp...@gm..., see http://gmplib.org/manual/Reporting-Bugs.html" #define PACKAGE_URL "http://www.gnu.org/software/gmp/" #define PACKAGE "gmp" #define VERSION "5.0.4" #define WANT_FFT 1 #define HAVE_HOST_CPU_i686 1 #define HAVE_SPEED_CYCLECOUNTER 2 #define HAVE_CALLING_CONVENTIONS 1 /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error --------------------------------------------- |