PDA

View Full Version : Problems compiling QMAKE



JNT
6th January 2007, 14:04
Hi!

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!
/JNT

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

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

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

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