View Single Post
  #3   (View Single Post)  
Old 5th May 2008
enpey enpey is offline
Port Guard
 
Join Date: May 2008
Location: Newcastle, Australia
Posts: 33
Default

Hey,

I am using zsh and I have checked to ensure that export is working. I downloaded the file you are using and that did not work either - giving me:

Quote:
Script started on Tue May 6 07:19:39 2008
$ ls
log.txt main.cpp
$ qmake-qt4 -project
$ ls
hell.pro log.txt main.cpp
$ qmake-qt4
$ ls
Makefile hell.pro log.txt main.cpp
$ make
c++ -c -pipe -O2 -fno-strict-aliasing -pipe -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I/usr/local/include/QtCore -I/usr/local/include/QtCore -I/usr/local/include/QtGui -I/usr/local/include/QtGui -I/usr/local/include -I. -I. -I. -I/usr/local/include -o main.o main.cpp
main.cpp:1: error: expected constructor, destructor, or type conversion before 'file'
In file included from /usr/include/sys/_types.h:33,
from /usr/include/stddef.h:43,
from /usr/local/include/QtCore/qglobal.h:47,
from /usr/local/include/QtCore/qnamespace.h:47,
from /usr/local/include/QtCore/qobjectdefs.h:47,
from /usr/local/include/QtCore/qobject.h:49,
from /usr/local/include/QtCore/qcoreapplication.h:47,
from /usr/local/include/QtGui/qapplication.h:47,
from /usr/local/include/QtGui/QApplication:1,
from main.cpp:6:
/usr/include/machine/_types.h:75: error: '__int8_t' does not name a type
In file included from /usr/include/unistd.h:41,
from /usr/include/c++/4.2/bits/gthr-default.h:44,
from /usr/include/c++/4.2/bits/gthr.h:114,
from /usr/include/c++/4.2/bits/c++io.h:43,
from /usr/include/c++/4.2/iosfwd:46,
from /usr/include/c++/4.2/bits/stl_algobase.h:70,
from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/string:47,
from /usr/local/include/QtCore/qstring.h:62,
from /usr/local/include/QtCore/qobject.h:50,
from /usr/local/include/QtCore/qcoreapplication.h:47,
from /usr/local/include/QtGui/qapplication.h:47,
from /usr/local/include/QtGui/QApplication:1,
from main.cpp:6:
/usr/include/sys/types.h:64: error: '__int8_t' does not name a type
In file included from /usr/include/c++/4.2/bits/postypes.h:49,
from /usr/include/c++/4.2/iosfwd:49,
from /usr/include/c++/4.2/bits/stl_algobase.h:70,
from /usr/include/c++/4.2/bits/char_traits.h:46,
from /usr/include/c++/4.2/string:47,
from /usr/local/include/QtCore/qstring.h:62,
from /usr/local/include/QtCore/qobject.h:50,
from /usr/local/include/QtCore/qcoreapplication.h:47,
from /usr/local/include/QtGui/qapplication.h:47,
from /usr/local/include/QtGui/QApplication:1,
from main.cpp:6:
/usr/include/stdint.h:77: error: '__int_least8_t' does not name a type
*** Error code 1

Stop in /usr/home/np/docs/.code/hell.
I am currently cvsupping the latest source...

For the application I was trying to build (Found in the book 'C++ GUI Programming with Qt4'), using qmake-qt4 instead of qmake means I don't have to adjust the Makefile to point to moc and uic correctly, but it still gives me the same error about incomplete types in the end.

I will finish updating and see if that has any effect.

Thanks, enpey
Reply With Quote