Problem creating dictionaries of classes which contain Qt-class-members

From: Katharina Ehrhardt <ehrhardt_at_pit.physik.uni-tuebingen.de>
Date: Tue, 03 May 2005 15:30:52 +0200


Hi all
I've encountered a problem in creating dictionaries for header files which include a Qt header file.
> $ROOTSYS/bin/rootcint -f mySmallClassDict.cpp -c -I$QTDIR/include
mySmallClass.h mySmallClassLinkDef.h
Error: Illegal pointer operation (tovalue) FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:148 Error: operator '/' divided by zero
FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:148 Syntax Error: defined(_SCO_DS)/*SCOOpenServer5+GCC*/ FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:148 Error: Illegal pointer operation (tovalue) FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:150 Error: operator '/' divided by zero

FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:150
Syntax Error: defined(__USLC__)/*allSCOplatforms+UDKorOUDK*/ 
FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:150
Error: Illegal pointer operation (tovalue) FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:153 Syntax Error: defined(__svr4__)&&defined(i386)/*OpenUNIX8+GCC*/ FILE:/opt/qt-3.3.2-gcc3/include/qglobal.h LINE:153 #error "Qt has not been ported to this OS - talk to qt-bugs_at_trolltech.com" Error: Function :data(0) is not defined in current scope FILE:/opt/qt-3.3.2-gcc3/include/qgarray.h LINE:116 Possible candidates are...
filename line:size busy function type and name Error: Symbol {}char is not defined in current scope FILE:/opt/qt-3.3.2-gcc3/include/qgarray.h LINE:116 Error: Function len(0){}char is not defined in current scope FILE:/opt/qt-3.3.2-gcc3/include/qgarray.h LINE:116 Possible candidates are...
filename line:size busy function type and name Error: Function data;uintlen;};QGArray( is not defined in current scope FILE:/opt/qt-3.3.2-gcc3/include/qgarray.h LINE:116 Possible candidates are...
filename line:size busy function type and name Limitation: length of one function argument be less than 1024 FILE:/opt/qt-3.3.2-gcc3/include/qgarray.h LINE:116 Use temp variable as workaround.
Error: improper lvalue FILE:/opt/qt-3.3.2-gcc3/include/qgarray.h LINE:116 Error: class,struct,union or type QGArray not defined FILE:/opt/qt-3.3.2-gcc3/include/qgarray.h LINE:119 Error: class,struct,union or type QGArray not defined FILE:/opt/qt-3.3.2-gcc3/include/qmemarray.h LINE:48 Segmentation fault (core dumped)
I'm especially unhappy with the line:#error "Qt has not been ported to this OS - talk to qt-bugs_at_trolltech.com"

and my header file looks like:
#include <qstring.h>
#include <TObject.h>

using namespace std;
class mySmallClass:public TObject
{
 private:
  QString name; //!
  int data;
 public:
  mySmallClass(const QString& n="",int d=0);   ~mySmallClass();
  int getData()const;
  QString getName()const;
  void setData(int d);
  ClassDef(mySmallClass,2)
};

Greetings
Katharina Ehrhardt Received on Tue May 03 2005 - 15:44:29 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET