I am making a port for Gentoo Linux. The compile bails out thus:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3/include
-I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT
-pthread -DNDEBUG -fno-exceptions -fno-check-new -Wall
-pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-Wno-long-long -Wnon-virtual-dtor -fno-builtin -O3
-march=athlon-tbird -pipe -c sequence.cpp
sequence.cpp: In destructor `CSequence::~CSequence()':
sequence.cpp:25: `cerr' undeclared (first use this function)
sequence.cpp:25: (Each undeclared identifier is reported only once
for each function it appears in.)
sequence.cpp:25: `endl' undeclared (first use this function)
make[3]: *** [sequence.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/dbdesigner-p2/work/dbdesigner/dbdesign'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/dbdesigner-p2/work/dbdesigner/dbdesign'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/dbdesigner-p2/work/dbdesigner'
make: *** [all-recursive-am] Error 2
Logged In: YES
user_id=655126
hi, my english is very bad.
this solution:
in the headers fron sequence.cpp:
renplace:
#include <iostream>
with
#include <iostream.h>
other files have this error.
Logged In: YES
user_id=222596
Hi, I have patched according to your instructions -- and it has compiled
farther. But ran into new problem. I am running QT 3.1 and KDE 3.1 now.
Thank you-
~~~~
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include -I/usr/qt/3/include
-I/usr/X11R6/include -DQT_THREAD_SUPPORT -pthread -O2
-DNDEBUG -fno-exceptions -fno-check-new -Wall -pedantic -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long
-Wnon-virtual-dtor -fno-builtin -O3 -march=athlon-tbird -pipe -c
crelationitem.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include -I/usr/qt/3/include
-I/usr/X11R6/include -DQT_THREAD_SUPPORT -pthread -O2
-DNDEBUG -fno-exceptions -fno-check-new -Wall -pedantic -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long
-Wnon-virtual-dtor -fno-builtin -O3 -march=athlon-tbird -pipe -c
creledit.cpp
In file included from crelationitem.h:22,
from crelationitem.cpp:18:
ctable.h:98: syntax error before `;' token
ctable.h:99: syntax error before `;' token
ctable.h:104: 'fldlist' is used as a type, but is not defined as a type.
ctable.h:105: 'idlist' is used as a type, but is not defined as a type.
ctable.h:114: parse error before `)' token
ctable.h:115: semicolon missing after declaration of `CTable'
ctable.h:115: two or more data types in declaration of `insertField'
ctable.h: In function `void clearFields()':
ctable.h:117: `fields' undeclared (first use this function)
ctable.h:117: (Each undeclared identifier is reported only once for each
function it appears in.)
ctable.h: At global scope:
ctable.h:119: parse error before `)' token
ctable.h:120: `idlist' was not declared in this scope
ctable.h:120: `newrel' was not declared in this scope
ctable.h:120: variable or field `setRelations' declared void
ctable.h: In function `void clearRelations()':
ctable.h:123: `relations' undeclared (first use this function)
ctable.h: At global scope:
ctable.h:126: parse error before `}' token
In file included from ctableitem.h:26,
from creledit.h:27,
from creledit.cpp:18:
ctable.h:98: syntax error before `;' token
ctable.h:99: syntax error before `;' token
ctable.h:104: 'fldlist' is used as a type, but is not defined as a type.
ctable.h:105: 'idlist' is used as a type, but is not defined as a type.
ctable.h:114: parse error before `)' token
ctable.h:115: semicolon missing after declaration of `CTable'
ctable.h:115: two or more data types in declaration of `insertField'
ctable.h: In function `void clearFields()':
ctable.h:117: `fields' undeclared (first use this function)
ctable.h:117: (Each undeclared identifier is reported only once for each
function it appears in.)
ctable.h: At global scope:
ctable.h:119: parse error before `)' token
ctable.h:120: `idlist' was not declared in this scope
ctable.h:120: `newrel' was not declared in this scope
ctable.h:120: variable or field `setRelations' declared void
ctable.h: In function `void clearRelations()':
ctable.h:123: `relations' undeclared (first use this function)
ctable.h: At global scope:
ctable.h:126: parse error before `}' token
In file included from creledit.cpp:18:
creledit.h:38: syntax error before `;' token
creledit.h:54: 'tablevect' is used as a type, but is not defined as a type.
creledit.h:57: 'idlist' is used as a type, but is not defined as a type.
creledit.h:58: 'idlist' is used as a type, but is not defined as a type.
In file included from ctableed.h:30,
from cview.h:35,
from crelationitem.h:26,
from crelationitem.cpp:18:
cfldedit.h:37: syntax error before `;' token
cfldedit.h:44: 'cbvect' is used as a type, but is not defined as a type.
In file included from ctableed.h:31,
from cview.h:35,
from crelationitem.h:26,
from crelationitem.cpp:18:
creledit.h:38: syntax error before `;' token
creledit.h:54: 'tablevect' is used as a type, but is not defined as a type.
creledit.h:57: 'idlist' is used as a type, but is not defined as a type.
creledit.h:58: 'idlist' is used as a type, but is not defined as a type.
In file included from cview.h:35,
from crelationitem.h:26,
from crelationitem.cpp:18:
ctableed.h:42: syntax error before `;' token
ctableed.h:60: 'idlist' is used as a type, but is not defined as a type.
ctableed.h:61: 'idlist' is used as a type, but is not defined as a type.
In file included from crelationitem.h:26,
from crelationitem.cpp:18:
cview.h:52: syntax error before `;' token
cview.h:93: 'seqlist' is used as a type, but is not defined as a type.
In file included from /usr/include/g++-v32/backward/iostream.h:31,
from crelationitem.cpp:19:
/usr/include/g++-v32/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated header.
Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the
<X.h> header for C++ includes, or <sstream> instead of the deprecated
header <strstream.h>. To disable this warning use -Wno-deprecated.
crelationitem.cpp: In member function `virtual void
CRelationItem::drawShape(QPainter&)':
crelationitem.cpp:147: `fldlist' undeclared (first use this function)
crelationitem.cpp:147: parse error before `=' token
crelationitem.cpp:148: parse error before `::' token
crelationitem.cpp:148: `it' undeclared (first use this function)
crelationitem.cpp:148: `fl' undeclared (first use this function)
In file included from ctableed.h:30,
from cview.h:35,
from creledit.cpp:19:
cfldedit.h:37: syntax error before `;' token
cfldedit.h:44: 'cbvect' is used as a type, but is not defined as a type.
In file included from cview.h:35,
from creledit.cpp:19:
ctableed.h:42: syntax error before `;' token
ctableed.h:60: 'idlist' is used as a type, but is not defined as a type.
ctableed.h:61: 'idlist' is used as a type, but is not defined as a type.
In file included from creledit.cpp:19:
cview.h:52: syntax error before `;' token
cview.h:93: 'seqlist' is used as a type, but is not defined as a type.
In file included from /usr/include/g++-v32/backward/iostream.h:31,
from creledit.cpp:20:
/usr/include/g++-v32/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated header.
Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the
<X.h> header for C++ includes, or <sstream> instead of the deprecated
header <strstream.h>. To disable this warning use -Wno-deprecated.
creledit.cpp: In constructor `CRelEdit::CRelEdit(QWidget*, const char*)':
creledit.cpp:33: `tables' undeclared (first use this function)
make[3]: *** [crelationitem.o] Error 1
make[3]: *** Waiting for unfinished jobs....
creledit.cpp: In member function `virtual void
CRelEdit::fromTableChanged()':
creledit.cpp:58: `fldlist' undeclared (first use this function)
creledit.cpp:58: parse error before `=' token
creledit.cpp:60: `fromFldIds' undeclared (first use this function)
creledit.cpp:61: parse error before `::' token
creledit.cpp:61: `it' undeclared (first use this function)
creledit.cpp:61: `l' undeclared (first use this function)
creledit.cpp: In member function `virtual void CRelEdit::fromFldChanged()':
creledit.cpp:75: parse error before `=' token
creledit.cpp:78: parse error before `::' token
creledit.cpp:85: `toFldIds' undeclared (first use this function)
creledit.cpp:86: parse error before `::' token
creledit.cpp: In member function `void CRelEdit::setRelation(CRelation*)':
creledit.cpp:115: `idlist' undeclared (first use this function)
creledit.cpp:115: parse error before `::' token
creledit.cpp: In member function `CRelation* CRelEdit::getRelation()':
creledit.cpp:134: parse error before `::' token
make[3]: *** [creledit.o] Error 1
make[3]: Leaving directory
`/data/tmp/portage/dbdesigner-0.1/work/dbdesigner/dbdesign'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/data/tmp/portage/dbdesigner-0.1/work/dbdesigner/dbdesign'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/tmp/p
Logged In: YES
user_id=1376638
I have exactly the same problem. Can any one can help us??
Thanks in advance.
Rodolfo