PDA

View Full Version : Don't configure under vs command prompt when building gcc (mingw) version of qt



piotr.dobrogost
16th July 2009, 12:42
I'm getting the following error (and many more) when trying to compile Qt 4.5.2 with GCC 3.4.5 on Windows Vista:


In file included from c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/INCLUDE/excpt.h:22,
from c:/Program Files/Microsoft SDKs/Windows/v6.0A/include/windows.h:151,
from ../../include/QtCore/../../src/corelib/global/qt_windows.h:56,
from ../../include/QtCore/qt_windows.h:1,
from qtmain_win.cpp:40:
c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/INCLUDE/crtdefs.h:530: error: redeclaration of C++ built-in type `short'
c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/INCLUDE/crtdefs.h:574: error: `__int64' does not name a type
c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/INCLUDE/crtdefs.h:582: error: `__time64_t' does not name a type

I have VS2008 installed and see there are some include files being pulled from it. I think that's not how it should be but have no clue how to fix it.
Any ideas?

jpn
16th July 2009, 12:47
Are you using a Visual Studio command prompt? I guess you have some confusing INCLUDE and LIB environment variables set.

piotr.dobrogost
16th July 2009, 13:23
Thanks.
That was it. I configured qt under vs command prompt by mistake...

jfabian
31st January 2011, 04:13
what do you did to solve?

piotr.dobrogost
1st February 2011, 20:28
what do you did to solve?

I ran configure.exe from within normal command prompt not from the one which is available in Visual C++.