the *AST files won't compile
Andreas Pakulat
ap125 at informatik.uni-rostock.de
Wed Jul 30 00:34:02 UTC 2003
Hi,
I already posted this on the kdevelop ML, but did not get an answer.
The problem is that I cannot compile kdevelop 3.0 alpha5 on my debian
unstable box. I tried to create a debian package, by issuing a
dpkg-buildpackage -us -uc -rfakeroot in the untarred kdevelop directory,
but this fails with the following error:
| if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ \
| -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/antlr -I../../lib/interfaces \
| -I../../lib/sourceinfo -I/usr/include/kde -I/usr/include/qt3 \
| -I/usr/X11R6/include -I/usr/lib/antlr -DQT_THREAD_SUPPORT \
| -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic \
| -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 \
| -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG \
| -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute \
| -fno-exceptions -fno-check-new -fno-common -fexceptions -MT \
| adasupportpart.lo -MD -MP -MF ".deps/adasupportpart.Tpo" \
| -c -o adasupportpart.lo `test -f 'adasupportpart.cpp' || \
| echo './'`adasupportpart.cpp; \
| then mv ".deps/adasupportpart.Tpo" ".deps/adasupportpart.Plo"; \
| else rm -f ".deps/adasupportpart.Tpo"; exit 1; \
| fi
| In file included from ada.g:30,
| from adasupportpart.cpp:28:
| AdaAST.hpp: In member function `void
| AdaAST::addChild(antlr::ASTRefCount<AdaAST>)':
| AdaAST.hpp:45: error: invalid static_cast from type `RefAdaAST' to type `
| antlr::RefAST'
| AdaAST.hpp: In static member function `static
| antlr::RefAST AdaAST::factory()':
| AdaAST.hpp:61: error: invalid static_cast from type `RefAdaAST' to type `
| antlr::RefAST'
| make[4]: *** [adasupportpart.lo] Fehler 1
| make[4]: Leaving directory `/home/andreas/compiling/kdevelop3_deb/kdevelop-3.0a5/parts/adasupport'
I don't see why the static cast doesn't work, as that is the way also in
the documentation of antlr. I really have no clue how to fix this.
Oh, btw. I'm having antlr version 2.7.2 and gcc-3.3 (could the gcc be
the problem?
Andreas
--
Good night to spend with family, but avoid arguments with your mate's
new lover.
More information about the KDevelop-devel
mailing list