[Qt-interest] Qt 4.5.0 and Mingw compiler strange behaviour
Davide
davide83 at gmail.com
Thu Mar 11 12:37:13 CET 2010
Hi all.
I'm using Qt 4.5.0 LGPL with MinGW compiler on Windows XP (using
Eclipse and Qt integration as IDE).
I'm observing a strange behaviour of the compiler and I don't
understand the cause.
Very simple example:
I define a class in "myClass.h" with a private variable
private:
int myVar;
in the class constructor defined in "myClass.cpp" I modify the value of myVar:
myVar = 100;
I build the program and all works fine.
Now I comment the myVar declaration in "MyClass.h"
private:
// int myVar;
I save the file, run the compiler and I get NO errors. (The compiler
understand that a file has been modified because it recompiles
"MyClass.cpp" file)
It's quite strange, isn't it?
Then I clean the project, I rebuild the whole project and now I get
errors because myVar is not defined.
How is it possible?
For a small project it is possible to clean and rebuid each time but
with a big project the complete rebuid takes some minutes and this
problem is very annoying.
Do you have any idea?
Thanks
Davide
--
Davide Ghezzi
PGP Key: http://www.newbugs.it/gpgkeys/davide83.asc
Fingerprint: 68A7 4090 22F7 B083 88A8 4F19 C2BB EE88 7E0E 9A9F
Homepage: http://www.newbugs.it
More information about the Qt-interest-old
mailing list