[Qt-interest] Including Win32 SDK header and Lib dir to my project?

Scott Aron Bloom Scott.Bloom at sabgroup.com
Sat Jun 13 01:38:32 CEST 2009


The HEADERS variable is used as a listing of source files that happen to
be headers,..Allowing the build system to find the QObject ones to be
sent to moc.

Why would you want system headers included?

Make sure your include path is set correctly, and include it in the
source file

Scott

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Huan "KDE
Zealot" Truong
Sent: Friday, June 12, 2009 4:29 PM
To: Qt-interest at trolltech.com
Subject: [Qt-interest] Including Win32 SDK header and Lib dir to my
project?

Hi all,

I am currently working on a program that needs some native Win32 API
calls. So I changed my .pro file so it looks like this:

win32:HEADERS += windows.h \
                stdio.h \
                tchar.h \
                dbt.h
INCLUDEPATH += "C:\\Program Files\\Microsoft
SDKs\\Windows\\v6.0\\Include"
LIBDIR += "C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0\\Lib"

I tried some different combinations of slashes and backslashes but
looks like it didn't work.

I still see warning messages from the "Compile output" tab of QtCreator:

WARNING: Failure to find: windows.h
...

How do I fix it?

Thank you very much,
- Huan T.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list