Error in building -every- project with the Qt Creator
-
Any help..?
-
Is it possible that there are remainings of your old MinGW installation left in the environment variables (especially PATH) or the registry?
-
Lukas - I have remove the Old MinGW from the PATH and physically from the Hard-Drive.
I've re-installed Qt and verified that Qt is using the MinGW inside the Qt directory (which it does).However, it appears to be worse - now when I run a Qt example in the Qt Creator startup screen, the compilation yields 100 errors and 97 warnings... The same errors it gave me when it was using the old MinGW (see a couple of posts above).
What's going on here..?
-
Try adding -U__STRICT_ANSI__ to your compiler flags.
-
Lukas, sorry for the stupidity, but how exactly do I do that? I'm compiling from the IDE and I haven't seen such option in the Options dialog. Can you please tell me how to do that?
-
Try installing Qt on other windows 7, and check if it works, because it worked fine for me. And I'm using windows 7 professional x86.
There might be some kind of problems with your system.
You know windows reinstall is the mighty solution for everything :D
-
xcoder - I don't have another Windows 7 machine, and I can't (and won't, for that matter) re-install my current operating system.
Trust me, I know that re-installing Windows is like a magic troubleshooting solution. However, I'm not going to get into the mess of re-installing Windows and all the programs I have (and backup all of my digital music library) just to get a piece of software to work. A software that is, as far as I can tell, doesn't work because a peculiar reason.
Sorry, but that solution is irrelevant. As much as I would like to stay away from any Microsoft crap like MFC or WinAPI, I can't waste time trying to figure out why am I getting a hundred errors for no reason.
I would appreciate any other solutions, if there are any.
-
I still bet that your MinGW installation is broken due to a corrupted environment.
Open a command promt, unset all environment variables (especially PATH, INCLUDE, LIB, QTDIR, QMAKESPEC) and then execute qtvars2.bat from the Qt SDK directory to get a fresh Qt environment.
As for STRICT_ANSI just add @ #undef STRICT_ANSI @ at the top of your source file (normally this is not needed and if it works afterwards it is most likely that something is still broken).
-
Lukas - I don't have the qtvars2.bat file in my Qt SDK directory. I only have qtenv.
-
[quote author="ElectroRonen" date="1311686387"]Lukas - I don't have the qtvars2.bat file in my Qt SDK directory. I only have qtenv.[/quote]
Should do the same.