I give up! Help!

Rick Moore lrmoore at home.com
Sat Sep 25 18:40:24 BST 1999


OK.  I think I figured it out.  Seems to be working; here's what was required to work with gcc 2.95.1:

1) "-fpermissive" was required to get rid of the ANSI errors. This took care of the bulk of problems.
2) 2 libraries "-ldl -ldb" don't exist on my system.  Don't know what they are, but it didn't seem to have a problem linking without them.
3) The classparser had the remaining problems.  In several files a construct like "str != NULL" was used where str is defined as a QT object like QString.  For some reason, the compiler found this ambiguous, so I changed it to "str != 0".  I hope I didn't break the code-- it appears to work OK.  I had to make about 4 changes like this-- if you'd like me to document them more diligently for the developers, just let me know.

Regards,
Rick

  ----- Original Message ----- 
  From: Rick Moore 
  To: kdevelop at fara3.cs.uni-potsdam.de 
  Sent: Friday, September 24, 1999 9:16 PM
  Subject: I give up! Help!


  I've searched the mail archive, and I'm astonished that I'm the only one with this problem.  Please save me from a life cursed with vi.  Your product looks awesome, and I'd really like to get it working.

  I've tried gcc 2.95 (latest release), egcs 1.1.?, gcc 2.7.x, and gcc 2.8.1.  All of them crap out at various points trying to compile the source code.  From my searches on the mail list, it sounds like you all have 2.95.1 working so I'll concentrate on that one.  I'm running a fresh install of FreeBSD 3.2.  I've confirmed the revision levels of gmake, autoinstall, flex, etc.  The ./configure line is "./configure --prefix=/usr/local --with-extra-includes=/usr/include/g++".

  Is there anything else I can tell you that might help diagnose the problem?  I'm still somewhat naive to the ways of the open source community, so it could just be something stupid.

  The compiler output is as follows:

  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include -I/usr/X11R6/include/X11/qt  -I/usr/include/g++ -I/usr/X11R6/include    -O2 -Wall -c ClassParser.cc
  In file included from /usr/include/g++/iostream.h:31,
                   from ClassParser.cc:20:
  /usr/include/g++/streambuf.h:394: invalid type `void *' for default argument to `ios *'
  /usr/include/g++/streambuf.h: In method `ios::~ios()':
  /usr/include/g++/streambuf.h:472: warning: `void *' is not a pointer-to-object type
  In file included from ClassParser.cc:20:
  /usr/include/g++/iostream.h: At top level:
  /usr/include/g++/iostream.h:50: invalid type `void *' for default argument to `ostream *'
  /usr/include/g++/iostream.h:117: invalid type `void *' for default argument to `ostream *'
  /usr/include/g++/iostream.h:221: invalid type `void *' for default argument to `ostream *'
  In file included from ParsedContainer.h:191,
                   from ParsedClassContainer.h:22,
                   from ClassStore.h:21,
                   from ClassParser.h:27,
                   from ClassParser.cc:24:
  ParsedStruct.h: In method `const char * CParsedStruct::asPersistantString(QString &)':
  ParsedStruct.h:44: ANSI C++ forbids implicit conversion from `void *' in return
  In file included from ClassParser.cc:24:
  ClassParser.h: At top level:
  ClassParser.h:74: invalid type `void *' for default argument to `const char *'
  ClassParser.cc: In method `class CParsedAttribute * CClassParser::parseVariable()':
  ClassParser.cc:582: ANSI C++ forbids implicit conversion from `void *' in initialization
  ClassParser.cc: In method `class CParsedMethod * CClassParser::parseMethodDeclaration()':
  ClassParser.cc:804: ANSI C++ forbids implicit conversion from `void *' in assignment
  ClassParser.cc: In method `class CParsedClass * CClassParser::parseClassHeader()':
  ClassParser.cc:1124: ANSI C++ forbids implicit conversion from `void *' in assignment

  ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/19990925/3d708bcf/attachment.html>


More information about the KDevelop mailing list