[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Error compiling cuteidl
From:       David Smith <dsmith () algonet ! se>
Date:       1999-09-26 18:12:47
[Download RAW message or body]

I get an error in cuteidl when I tried to compile kdelibs in a recent
CVSup
update of KDE 2.  The error is a clash between ministl-string and the
standard
STL string.  Is cuteidl supposed to use MICO's ministl?  (If not, then
there
is no error!)

make[4]: Entering directory
`/home/david/KDE/CVS-HEAD/kde/kdelibs/corba/cuteidl'
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kdecore -I../../kdeui
-I/home/david/KDE/kde-HEAD/qt/include -I/usr/X11R6/include
-I/home/david/KDE/kde-HEAD/include  -I/usr/local/include  
-DCPP=\"mico-cpp\" -ftemplate-depth-42 -O0 -c params.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kdecore -I../../kdeui
-I/home/david/KDE/kde-HEAD/qt/include -I/usr/X11R6/include
-I/home/david/KDE/kde-HEAD/include  -I/usr/local/include  
-DCPP=\"mico-cpp\" -ftemplate-depth-42 -O0 -c parser.cc
/usr/local/include/ministl/bstring.h:317: previous declaration `template
<class charT> basic_string<charT>'
In file included from /usr/include/g++-2/string:6,
                 from parsenode.h:40,
                 from parser.h:31,
                 from parser.cc:27:
/usr/include/g++-2/std/bastring.h:67: used 1 template parameter instead
of 3
/usr/include/g++-2/std/bastring.h:67: redefinition of `class
basic_string<charT>'
/usr/local/include/ministl/bstring.h:724: previous definition here
/usr/include/g++-2/std/bastring.h:92: redefinition of default argument
for `class traits'
/usr/include/g++-2/std/bastring.h:64:   original definition appeared
here
/usr/include/g++-2/std/bastring.h:113: syntax error before `*'
/usr/include/g++-2/std/bastring.h:114: semicolon missing after
declaration of `basic_string<charT>'
/usr/include/g++-2/std/bastring.h: In method `charT *
basic_string<charT>::Rep<charT,traits,Allocator>::data()':
/usr/include/g++-2/std/bastring.h:73: confused by earlier errors,
bailing out     


Both kdelibs/corba/cuteidl/parsenode.h and
kdelibs/corba/cuteidl/prepro.cc
have an #include <string> which includes the "standard" STL string. 
Should
it be #include <ministl/string>, or maybe #include <CORBA.h> (since it
includes STL string)?  Or is it an error in my setup?


And last but not least: multiple thanks to all KDE-developers for
a great product!!


/David

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic