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

Karol Krizka kkrizka at gmail.com
Sat Jun 13 13:00:26 CEST 2009


On Fri, 2009-06-12 at 20:39 -0500, Huan "KDE Zealot" Truong wrote:
> Hi Scott,
> 
> Thanks for the suggestions -- I have fixed it and realized that
> Mingw32 doesn't like many header files in the Windows SDK and
> generates a lot of warnings (while it works with the Mingw32 API pack,
> but mingw32 API lacks the stuff I need.) I will try to compile the
> program with VS2008 to see if it works.
> 
Yes, MingW32 lacks a lot of useful things on Windows, like DirectX
support. Recompiling Qt with VC++ tools is the first thing that I do on
Windows.

--
Cheers,
Karol Krizka

> - Huan T.
> 
> 
> 
> On Fri, Jun 12, 2009 at 6:38 PM, Scott Aron
> Bloom<Scott.Bloom at sabgroup.com> wrote:
> > 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
> >
> > _______________________________________________
> > 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