Ran into another one. Just to be clear, I am following the
instructions in ./INSTALL w.r.t. compiling. IE, ./configure followed
by make.
make
g++ -c -pipe -g -Wall -W -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -
DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/macx-g++ -I. -
I../../../include/QtCore -I../../../include/QtCore -I../../../include/
QtGui -I../../../include/QtGui -I../../../include -I.moc/debug-shared -
I.uic/debug-shared -F/Users/dap/proj/qt/qt-mac-cocoa-opensource-
src-4.4.0-alpha1/lib -o .obj/debug-shared/calculator.o calculator.cpp
calculator.h:82: error: ISO C++ forbids declaration of 'Button' with
no type
calculator.h:82: error: expected ';' before '*' token
calculator.h:107: error: ISO C++ forbids declaration of 'Button' with
no type
calculator.h:107: error: expected ';' before '*' token
calculator.cpp: In constructor 'Calculator::Calculator(QWidget*)':
calculator.cpp:81: error: 'digitButtons' was not declared in this scope
calculator.cpp:82: error: 'createButton' was not declared in this scope
calculator.h has:
QT_BEGIN_NAMESPACE
class QLineEdit;
QT_END_NAMESPACE
class Button;
....
private:
//! [1] //! [2]
Button *createButton(const QString &text, const QColor &color,
const char *member);
This is with i686-apple-darwin9-g++-4.0.1.
Prepending 'class ' was needed to disambiguate.
Found the culprit:
# 400 "/System/Library/Frameworks/Carbon.framework/Frameworks/
HIToolbox.framework/Headers/Events.h" 3
extern Boolean
Button(void) ;
Fix: change most of the 'Button' to 'class Button' in the calculator.h
and calculator.cpp, as necessary to get the thing to compile.
Again, I assume these are already noted and fixed. Please point me to
where I can find the rest of them.....
Cheers.
To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]