D:\projects\Private_test\src>make
g++ -c -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_CORE_LIB -D
QT_THREAD_SUPPORT -I"D:/Qt/4.1.1/include/QtCore" -I"D:/Qt/4.1.1/include" -I"D:/Qt/4.1.1/include/Acti
veQt" -I"build\moc" -I"." -I"D:/Qt/4.1.1/mkspecs/win32-g++" -o build\obj\mybaseclass.o mybaseclass.c
pp
In file included from mybaseclass.cpp:1:
mybaseclass.h:19: error: ISO C++ forbids declaration of `MyBaseClassPrivate' with no type
mybaseclass.h:19: error: `MyBaseClassPrivate' declared as an `inline' field
mybaseclass.h:19: error: expected `;' before '*' token
mybaseclass.h:19: error: expected `;' before "inline"
mybaseclass.h:19: error: ISO C++ forbids declaration of `MyBaseClassPrivate' with no type
mybaseclass.h:19: error: `MyBaseClassPrivate' declared as an `inline' field
mybaseclass.h:19: error: expected `;' before '*' token
mybaseclass.h:19: error: expected `;' before "friend"
D:/Qt/4.1.1/include/QtCore/../../src/corelib/kernel/qobject.h: In member function `void MyBaseClass:
:setParam(int)':
D:/Qt/4.1.1/include/QtCore/../../src/corelib/kernel/qobject.h:99: error: `QObjectPrivate* QObject::d
_func()' is private
mybaseclass.cpp:28: error: within this context
mybaseclass.cpp:28: error: cannot convert `QObjectPrivate*' to `MyBaseClassPrivate* const' in initia
lization
mybaseclass.cpp:29: error: invalid use of undefined type `struct MyBaseClassPrivate'
mybaseclass.h:19: error: forward declaration of `struct MyBaseClassPrivate'
D:/Qt/4.1.1/include/QtCore/../../src/corelib/kernel/qobject.h: In member function `int MyBaseClass::
param() const':
D:/Qt/4.1.1/include/QtCore/../../src/corelib/kernel/qobject.h:99: error: `const QObjectPrivate* QObj
ect::d_func() const' is private
mybaseclass.cpp:34: error: within this context
mybaseclass.cpp:34: error: cannot convert `const QObjectPrivate*' to `const MyBaseClassPrivate* cons
t' in initialization
mybaseclass.cpp:35: error: invalid use of undefined type `const struct MyBaseClassPrivate'
mybaseclass.h:19: error: forward declaration of `const struct MyBaseClassPrivate'
mingw32-make: *** [build\obj\mybaseclass.o] Error 1
Bookmarks