gideon doesn't compile

Richard Dale Richard_Dale at tipitina.demon.co.uk
Tue May 8 18:17:24 UTC 2001


David.Goodenough sent me this patch the other day to fix the problem, I should
have applied it then - sorry about that. I'll do it now.

-- Richard

 > I Idownloaded the latest version and when I compiled it I got errors
about 
> conflicts between declarations and actual code.  Here is the patch that
> gets rid of this problem:-

Index: parts/javasupport/tokenizer.l
===================================================================
RCS file:
/home/projects/kdecvs/cvsroot/kdevelop/parts/javasupport/tokenizer.l,v
retrieving revision 1.2
diff -u -r1.2 tokenizer.l
--- parts/javasupport/tokenizer.l  2001/04/13 08:31:32  1.2
+++ parts/javasupport/tokenizer.l  2001/05/02 21:41:12
@@ -44,9 +44,9 @@
QString comment;

/* Function prototypes */
-  bool beginComment(MyLexer *lex);
-  void inComment(MyLexer *lex);
-  bool endComment(MyLexer *lex);
+  static bool beginComment(MyLexer *lex);
+  static void inComment(MyLexer *lex);
+  static bool endComment(MyLexer *lex);
%}

WS           [[:blank:]\r]+

> I guess that this is merely a compiler being picky problem (I am using GCC
> 2.95.4 which is I think the latest official version).



On Tue, 08 May 2001, you wrote:
> Bernd Gehrmann wrote:
> > 
> > On Tue, 8 May 2001, Ralf Nolden wrote:
> > 
> > > Hi,
> > >
> > > I get compile errors in gideon.
> > 
> > Can you be a bit more precise? I've got heaps of new stuff (like
> > full scripting and fortran support) on my harddisk, but I hesitate
> > to commit anything because it would certainly increase the number
> > of errors ;-)
> 
> :-)) Ok, here you go:
> 
> 
> Making all in javasupport
> make[3]: Entering directory
> `/home/rnolden/Projects/KDE-2.1/kdevelop/parts/javasupport'
> /bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.
> -I. -I../.. -I../../lib/interfaces -I../../lib/sourceinfo
> -I/opt/kde2/include -I/usr/lib/qt2/include -I/usr/X11R6/include     -O2
> -fno-exceptions -fno-check-new  -c tokenizer.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/interfaces
> -I../../lib/sourceinfo -I/opt/kde2/include -I/usr/lib/qt2/include
> -I/usr/X11R6/include -O2 -fno-exceptions -fno-check-new
> -Wp,-MD,.deps/tokenizer.pp -c tokenizer.cpp  -fPIC -DPIC -o
> .libs/tokenizer.o
> ./tokenizer.l: In function `bool beginComment(MyLexer *)':
> ./tokenizer.l:157: `beginComment(MyLexer *)' was declared `extern' and
> later `static'
> ./tokenizer.l:47: previous declaration of `beginComment(MyLexer *)'
> ./tokenizer.l: In function `void inComment(MyLexer *)':
> ./tokenizer.l:164: `inComment(MyLexer *)' was declared `extern' and
> later `static'
> ./tokenizer.l:48: previous declaration of `inComment(MyLexer *)'
> ./tokenizer.l: In function `bool endComment(MyLexer *)':
> ./tokenizer.l:170: `endComment(MyLexer *)' was declared `extern' and
> later `static'
> ./tokenizer.l:49: previous declaration of `endComment(MyLexer *)'
> make[3]: *** [tokenizer.lo] Error 1
> make[3]: Leaving directory
> `/home/rnolden/Projects/KDE-2.1/kdevelop/parts/javasupport'
> -- 
> Finally, even I have to admit that being myself was the best thing
> that ever could have happened to me. - Le Grand Charmeur
> 
> **********************************
> Ralf Nolden
> 
> The KDevelop Project
> http://www.kdevelop.org
> 
> nolden at kde.org
> rnolden at kdevelop.org
> **********************************
> 
> -
> to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
> unsubscribe your-email-address

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



More information about the KDevelop-devel mailing list