klumpp at nerim.fr
Tue Oct 1 23:37:05 BST 2002
I have done exactly the same thing and I had the same problem.
It seems that with gcc3 you must put "friend class classname" rather
than "friend classname" ! If you read carefully the log file you will
see that it tells you what to do ;-)
Ian Porter a écrit:
>I have just installed mandrake version 9.0 and I tried Kdevelop it starts fine
>but when I try to compile any project it comes back with an error, I am
>wondering what I have done wrong ?
>I was testing Kdevelop with a normal project created with the KDevelop create
>The error log is below
>make: Entering directory `/home/ian/Programming/KDeveloper/test'
>Making all in test
>make: Entering directory `/home/ian/Programming/KDeveloper/test/test'
>g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include
>-DQT_THREAD_SUPPORT -D_REENTRANT -O2 -O0 -g3 -Wall -fno-exceptions
>-fno-check-new -c testview.cpp
>In file included from testview.cpp:26:
>testview.h:50: friend declaration requires class-key, i.e. `friend struct
>In file included from testview.cpp:27:
>testdoc.h:52: friend declaration requires class-key, i.e. `friend class
>make: Leaving directory `/home/ian/Programming/KDeveloper/test/test'
>make: *** [testview.o] Error 1
>make: Leaving directory `/home/ian/Programming/KDeveloper/test'
>make: *** [all-recursive] Error 1
>make: *** [all-recursive-am] Error 2
>*** failed ***
>to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
More information about the KDevelop