Hi, all:
I'm trying to compile a package under WindowsXP, using Qt Creator 1.2.1 .
Some of this package contains
#include "WinVer.h"
#include "WinVer.h"
To copy to clipboard, switch view to plain text mode
which is just in the directory
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
To copy to clipboard, switch view to plain text mode
It looks that Qt Creator has no place to set these directories. The only place I can think of is from within the .pro file. Therefore, I added something into my .pro file.
INCLUDEPATH += C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
INCLUDEPATH += C:\Program Files\Microsoft SDKs\Windows\v6.1\Include
To copy to clipboard, switch view to plain text mode
However, when I tried to compile this package, I still obtained the following error messages.
icon.rc(4) : fatal error RC1015: cannot open include file 'WinVer.h'.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\rc.EXE"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
Stop.
Exited with code 2.
Error while building project Test1
When executing build step 'Make'
icon.rc(4) : fatal error RC1015: cannot open include file 'WinVer.h'.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\rc.EXE"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'
Stop.
Exited with code 2.
Error while building project Test1
When executing build step 'Make'
To copy to clipboard, switch view to plain text mode
BTW, I'm using Qt 4.5.2 + MSVC 9.0 (you may refer to the attached .jpg file)
So, can anybody give me a hint how to solve this problem?
Best Regards
JIA
Bookmarks