Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
"cpp: Too many arguments" error minGW make of adler32.c (newbie question)
I am attempting to build Qt/Windows Version 4.3.3 using minGW GCC 3.4.5. The configure process completed without errors. The make process proceeded, apparently successfully, for a long time before stopping while trying to compile zlib/adler32.c complaining of "Too many arguments" for the cpp command.
Build machine - Windows XP Pro with Visual Studio 2005 and Borland Delphi 2006 installed.
Any suggestions?
Thanks
Dump of makefile output at point where error occurred:
C:\qt\src\tools\rcc>mingw32-make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/qt/src/tools/rcc'
gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_RCC -DQ
T_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODE
TABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NODLL -I".
.\..\corelib\arch\generic" -I"..\..\..\include" -I"." -I"..\..\..\include\QtCore
" -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zlib" -I"." -I"..\..\..\mkspecs\w
in32-g++" -o tmp\obj\release_shared\adler32.o ..\..\3rdparty\zlib\adler32.c
Usage: cpp [switches] input output
*** COMMAND LINE SWITCHES INFO OMITTED***
cpp: Too many arguments
mingw32-make[1]: *** [tmp/obj/release_shared/adler32.o] Error 1
mingw32-make[1]: Leaving directory `C:/qt/src/tools/rcc'
mingw32-make: *** [release] Error 2
RE: "cpp: Too many arguments" error minGW make of adler32.c (newbie question)
PROBLEM SOLVED!
I'll answer my own question...
It turned out that I had a slightly older version of gcc earlier in the path (it was in the Free Pascal directory), and it was the source of the problem.
Once the path was fixed to invoke the more recent gcc, everything compiled correctly.