Kdevelop 2.0 cant compile

Ralf Nolden nolden at kde.org
Mon Sep 10 23:16:57 BST 2001


On Montag, 10. September 2001 21:08, you wrote:
> Ok,
> how can i install TWO compilers? i want to have a second copy of gcc,
> 2.95.3 for example (i have it already downloaded) but i want just to use it
> when i need (kdevelop for example).
You can install both at the same system at the same time. The usage is mostly 
determined by exporting CC and CXX; configure for example or any Makefile 
that doesn't explicitely name the compiler will pick up what you have 
exported. That may require you to rename files like gcc, g++, c++. So, before 
you run configure, do an

export CC=gcc
export CXX=g++

and in case you renamed gcc 3 as gcc-3 and g++ as g++-3

export CC=gcc-3
export CXX=g++-3

whenever you want to use the gcc 3 one.

Inside KDevelop, you currently need to open a bash, do your exports and then 
start kdevelop& from there, then it will pick up gcc-3 and g++-3 as the 
compiler.

Ralf
>
> On Sunday 09 September 2001 11:31, you wrote:
> > On Samstag, 8. September 2001 22:53, you wrote:
> >
> > It seems you're using Gcc 3.0. But recommended for KDE is gcc 2.95.2 or
> > gcc 2.96 (RH default). Sorry that you struggle with this but gcc 3.0
> > isn't officially supported as a compiler for KDE compilation. In this
> > special case you're really having trouble on the compilation system, not
> > with kdevelop...
> >
> > > /usr/include/g++-v3/backward/iostream.h:36: using directive `istream'
> >
> >                      ^^^^
> >
> > Ralf
> >
> > > I have downloaded and compiled and installe flex (2.54a) but no luck,
> > > still:
> > >
> > > make[2]: Entering directory `/sources/nuovi/kdevelop-2.0/kdevelop'
> > > Making all in classparser
> > > make[3]: Entering directory
> > > `/sources/nuovi/kdevelop-2.0/kdevelop/classparser' c++ -DHAVE_CONFIG_H
> > > -I. -I. -I../.. -I/usr/local/kde/include
> > > -I/usr/local/qt/inc
> > > lude -I/usr/X11R6/include     -O2 -fno-exceptions -fno-check-new  -c
> > > tokenizer.c
> > > c
> > > In file included from /usr/local/include/FlexLexer.h:47,
> > >                  from tokenizer.cc:238:
> > > /usr/include/g++-v3/backward/iostream.h:36: using directive `istream'
> > >    introduced ambiguous type `istream'
> > > tokenizer.cc: In member function `virtual int yyFlexLexer::yylex()':
> > > tokenizer.cc:1318: cannot convert `std::istream*' to `istream*' in
> > > assignment tokenizer.cc: In member function `void
> > > yyFlexLexer::yy_load_buffer_state()': tokenizer.cc:1849: cannot convert
> > > `istream*' to `std::istream*' in assignment tokenizer.cc: In member
> > > function `void
> > >    yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
> > > tokenizer.cc:1900: cannot convert `std::istream*' to `istream*' in
> > > assignment make[3]: *** [tokenizer.o] Error 1
> > > make[3]: Leaving directory
> > > `/sources/nuovi/kdevelop-2.0/kdevelop/classparser' make[2]: ***
> > > [all-recursive] Error 1
> > > make[2]: Leaving directory `/sources/nuovi/kdevelop-2.0/kdevelop'
> > > make[1]: *** [all-recursive] Error 1
> > > make[1]: Leaving directory `/sources/nuovi/kdevelop-2.0'
> > > make: *** [all-recursive-am] Error 2
> > >
> > > On Saturday 08 September 2001 01:20, Ralf Nolden wrote:
> > > > On Freitag, 7. September 2001 21:11, you wrote:
> > > >
> > > > Hi,
> > > >
> > > > you need to install flex.
> > > >
> > > > Ralf
> > > >
> > > > > Hi!
> > > > > i am building my own linux box and i am quite finished.
> > > > > Still i cannot have kdevelop running!
> > > > > I have:
> > > > > kernel 2.4.7
> > > > > xfree 4.1.0
> > > > > kdelibs 2.2
> > > > > .. other kde parts 2.2 ...  (kdegames kdenetwork... and other
> > > > > pieces) gcc 3.0.1 (i have compiled about 1.5gb programs without
> > > > > problems, should it be unstable? i dont think so)
> > > > > and more junk.
> > > > >
> > > > > When i try to compile kdevelop 2.0 (the sources given with kde 2.2
> > > > > sources) i get:
> > > > >
> > > > > <SNIP>
> > > > > make[4]: Leaving directory
> > > > > `/sources/nuovi/kde2.2/kdevelop-2.0/doc/en' make[3]: Leaving
> > > > > directory `/sources/nuovi/kde2.2/kdevelop-2.0/doc/en' make[3]:
> > > > > Entering directory `/sources/nuovi/kde2.2/kdevelop-2.0/doc'
> > > > > make[3]: Nothing to be done for `all-am'.
> > > > > make[3]: Leaving directory `/sources/nuovi/kde2.2/kdevelop-2.0/doc'
> > > > > make[2]: Leaving directory `/sources/nuovi/kde2.2/kdevelop-2.0/doc'
> > > > > Making all in kdevelop
> > > > > make[2]: Entering directory
> > > > > `/sources/nuovi/kde2.2/kdevelop-2.0/kdevelop' Making all in
> > > > > classparser make[3]: Entering directory
> > > > > `/sources/nuovi/kde2.2/kdevelop-2.0/kdevelop/classparser'
> > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/kde/include
> > > > > -I/usr/local/qt/include -I/usr/X11R6/include     -O2
> > > > > -fno-exceptions -fno-check-new  -c tokenizer.cc
> > > > > In file included from /usr/include/FlexLexer.h:47,
> > > > >                  from tokenizer.cc:238:
> > > > > /usr/include/g++-v3/backward/iostream.h:36: using directive
> > > > > `istream' introduced ambiguous type `istream'
> > > > > tokenizer.cc: In member function `virtual int
> > > > > yyFlexLexer::yylex()': tokenizer.cc:1318: cannot convert
> > > > > `std::istream*' to `istream*' in assignment tokenizer.cc: In member
> > > > > function `void
> > > > > yyFlexLexer::yy_load_buffer_state()': tokenizer.cc:1849: cannot
> > > > > convert `istream*' to `std::istream*' in assignment tokenizer.cc:
> > > > > In member function `void
> > > > >    yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
> > > > > tokenizer.cc:1900: cannot convert `std::istream*' to `istream*' in
> > > > > assignment make[3]: *** [tokenizer.o] Error 1
> > > > > make[3]: Leaving directory
> > > > > `/sources/nuovi/kde2.2/kdevelop-2.0/kdevelop/classparser'
> > > > > make[2]: *** [all-recursive] Error 1
> > > > > make[2]: Leaving directory
> > > > > `/sources/nuovi/kde2.2/kdevelop-2.0/kdevelop' make[1]: ***
> > > > > [all-recursive] Error 1
> > > > > make[1]: Leaving directory `/sources/nuovi/kde2.2/kdevelop-2.0'
> > > > > make: *** [all-recursive-am] Error 2
> > > > >
> > > > > please note ./configure runs with no problems, i have qt-2.2.4...
> > > > > have any ideas?
> > > > > thanks
> > >
> > > -
> > > to unsubscribe from this list send an email to
> > > kdevelop-request at kdevelop.org with the following body: unsubscribe
> > > »your-email-address«
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> »your-email-address«

-- 
We're not a company, we just produce better code at less costs.
--------------------------------------------------------------------
Ralf Nolden
nolden at kde.org

The K Desktop Environment	The KDevelop Project
http://www.kde.org		http://www.kdevelop.org


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list