[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] Using windows.h with mingw and Qt
From:       Greg Chicares <gchicares () sbcglobal ! net>
Date:       2009-09-30 15:11:01
Message-ID: 4AC37505.5070006 () sbcglobal ! net
[Download RAW message or body]

On 2009-09-30 13:24Z, Wolfgang Pausch wrote:
> 
> I currently have the task of writing a application using C++ and Qt
> 4.5 under Windows.  I want to do this under Eclipse using Mingw.  I
> use the Qt integration of eclipse using the mingw toolchain, so
> hopefully eclipse has chosen the right tools for my build chain ;-)

Sounds like a third party is repackaging the MinGW toolchain.
If it works, great. But if you run into problems, try building
a simple self-contained test case at the command line (not in
an IDE) first. That way, if it doesn't work, you can copy and
paste the exact commands here, and we'll be able to figure out
how to fix it.

> I need to use windows.h, as I need to have control over multiple
> keyboards connected to the same computer.  If I get it right,
> windows.h (and the corresponding libraries) is included in mingw?

MinGW includes the header. The operating system provides the
library.

> Under this assumption, I added a #include <windows.h> to my example
> program.  The compiler doesn´t complain about not finding the
> header, however, when it comes to the windows.h-related code, it
> complains about not finding the symbols.

All of them? Or only some?

Try a minimal console program that #includes only <windows.h>
and calls only MessageBox(). See whether you can compile and
link that; try doing so at the command line first. If it fails,
copy and paste the exact command line here.

> I also installed Microsoft Visual Studio 2008 Express and Microsoft
> Windows SDK.  Do I need this?

No. Don't try to combine it with MinGW.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic