compile problem with release

Ulrich Heinen heinenu at pcheinen.chemie.uni-freiburg.de
Tue Jun 15 14:39:27 BST 1999


I´ve experienced the same problem when compiling the latest (& greatest!)
release with gcc 2.7.2.1.
Using egcs-2.91.66 solved the problem. I suspect it has something to do
either with the time at which the templates are expanded and with the 
peculiartities of the new / delete operators. The specific failure occurs
at a delete operator, so apparently gcc 2.7.2.1 needs to know the size of
the memory block to be freed (and thus the internal structure of CParsedStruct)
when instantiating the template, while egcs-compiled code looks it up at
runtime.
Comments anybody?

Ulrich

>-------------------------------------------------------------
>[skiped warnings ...]
>
>In file included from .././classparser/ParsedClass.h:54,
>                 from ../ckdevelop.h:68,
>                 from kdlgedit.cpp:22:
>/usr/X11R6/include/X11/qt/qdict.h:136: invalid use of undefined type `struct CParsedStruct'
>/usr/X11R6/include/X11/qt/qlist.h: In method `void QListT<CParsedStruct>::deleteItem(void *)':
>/usr/X11R6/include/X11/qt/qlist.h:177: invalid use of undefined type `struct CParsedStruct'
>.././classparser/ParsedStruct.h: In method `const char * CParsedStruct::asPersistantString(class QString &)':
>
>[skiped warnings ...]
>
>gmake: *** [kdlgedit.o] Error 1
>--------------------------------------------------
>
>The thing is that i've run into such problems with snapshots, but i foggot
>to report them, and i've foggot how to fix this bug. :(
>Any suggestions?
>
>PS. freebsd 3.1, gcc v.2.7.2.1.
--
+-----------------------------------------------------------+
|                     Ulrich Heinen                         |
|   Institut fuer physikalische Chemie I de Universitaet   |
| Chemie III, Zi. 506 * Albertstrasse 21 * D-79104 Freiburg |
|        (0761) 203-6208 * heinenu at ruf.uni-freiburg.de      |
+-----------------------------------------------------------+



More information about the KDevelop mailing list