RE: QtTutorial 1- Hello World! example in Windows Vista
I am not using visual studio.
I'm not exactly sure where or what the compiler is. I'm just using whatever came with the automatic Windows installation of Qt.
This is actually the first time I've actually used a compiler that wasn't already set up as part of the source code editor. I've been trying to go through the "hello world" example in the help menu, looking things up or posting to the forum as I run into problems.
I'm not sure if this is relevant, but one of the things I had to do to get this far was to set QMAKESPEC=win32-g++.
Here are the first 30 or so lines that appeared after I typed "make" in my "Hello World" program directory:
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Users/Dustin Soodak/Permanent 2008/Hello
World'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..
\..\..\Qt\4.3.4\include\QtCore" -I"..\..\..\..\Qt\4.3.4\include\QtCore" -I"..\..
\..\..\Qt\4.3.4\include\QtGui" -I"..\..\..\..\Qt\4.3.4\include\QtGui" -I"..\..\.
.\..\Qt\4.3.4\include" -I"." -I"c:\Qt\4.3.4\include\ActiveQt" -I"debug" -I"." -I
"..\..\..\..\Qt\4.3.4\mkspecs\win32-g++" -o debug\main.o main.cpp
main.cpp:1: error: expected constructor, destructor, or type conversion before "
file"
main.cpp:1: error: expected `,' or `;' before "file"
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/cstring:49,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/bits/char_traits.h:45,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/string:47,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/tool
s/qstring.h:62,
from ../../../../Qt/4.3.4/include/QtCore/qstring.h:1,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/kern
el/qobject.h:50,
from ../../../../Qt/4.3.4/include/QtCore/qobject.h:1,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/kern
el/qcoreapplication.h:47,
from ../../../../Qt/4.3.4/include/QtCore/qcoreapplication.h:1,
from ../../../../Qt/4.3.4/include/QtGui/../../src/gui/kernel/qa
pplication.h:47,
from ../../../../Qt/4.3.4/include/QtGui/qapplication.h:1,
from ../../../../Qt/4.3.4/include/QtGui/QApplication:1,
from main.cpp:6:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cstddef:52:
error: `::ptrdiff_t' has not been declared
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/iosfwd:50,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/bits/stl_algobase.h:70,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/bits/char_traits.h:46,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/string:47,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/tool
s/qstring.h:62,
from ../../../../Qt/4.3.4/include/QtCore/qstring.h:1,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/kern
el/qobject.h:50,
from ../../../../Qt/4.3.4/include/QtCore/qobject.h:1,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/kern
el/qcoreapplication.h:47,
from ../../../../Qt/4.3.4/include/QtCore/qcoreapplication.h:1,
from ../../../../Qt/4.3.4/include/QtGui/../../src/gui/kernel/qa
pplication.h:47,
from ../../../../Qt/4.3.4/include/QtGui/qapplication.h:1,
from ../../../../Qt/4.3.4/include/QtGui/QApplication:1,
from main.cpp:6:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/postype
s.h:78: error: `ptrdiff_t' does not name a type
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/bits/stl_algobase.h:73,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/bits/char_traits.h:46,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/string:47,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/tool
s/qstring.h:62,
from ../../../../Qt/4.3.4/include/QtCore/qstring.h:1,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/kern
el/qobject.h:50,
from ../../../../Qt/4.3.4/include/QtCore/qobject.h:1,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/kern
el/qcoreapplication.h:47,
from ../../../../Qt/4.3.4/include/QtCore/qcoreapplication.h:1,
from ../../../../Qt/4.3.4/include/QtGui/../../src/gui/kernel/qa
pplication.h:47,
from ../../../../Qt/4.3.4/include/QtGui/qapplication.h:1,
from ../../../../Qt/4.3.4/include/QtGui/QApplication:1,
from main.cpp:6:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_ite
rator_base_types.h:104: error: `ptrdiff_t' has not been declared
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_ite
rator_base_types.h:141: error: `ptrdiff_t' does not name a type
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_ite
rator_base_types.h:151: error: `ptrdiff_t' does not name a type
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/bits/char_traits.h:46,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/
c++/3.4.2/string:47,
from ../../../../Qt/4.3.4/include/QtCore/../../src/corelib/tool