View Full Version : Problems compiling QMAKE

6th January 2007, 13:04

When I attempt to compile QMAKE I get two errors (with QT 4.2.2):

c:\QT\4.2.2\include\QtCore\../../src\corelib\global\qglobal.h (27): fatal error C1083: Cannot open includefile 'stddef.h': No such file or directory

NMAKE: fatal error U1077: "c:\Program\Microsoft Visual C++ Toolkit 2003\bin\cl.EXE": return code '0x2'

My guess is that the second error will go away if the first one is solved. I'm using Windows XP and I'm trying to compile QMAKE with the Microsoft Visual Studio 2005 compiler.

Help would be appriciated!

6th January 2007, 14:18
I'd say that you are missing some sort of environment variable to inform you C++ compiler where the headers are stored.

6th January 2007, 16:52
Check the additional include paths in Visual Studio, in project properties. Maybe there is something missing there.

7th January 2007, 17:06
Everything seems to be in order in VC's include paths. Should I add something in the PATH variable amongst the environment variables?

9th January 2007, 17:23
I can't put MSVC's "include" directory in the PATH variable, can I?