build error kdelibs3.5.1 kio
faure at kde.org
Wed Feb 1 11:23:10 GMT 2006
On Wednesday 01 February 2006 10:46, Thiago Macieira wrote:
> Tobias wrote:
> >In file included from global.cpp:19,
> > from libkiocore_la.all_cpp.cpp:11:
> >../../config.h: At global scope:
> >../../config.h:900: error: expected constructor, destructor, or type
> >conversion before
> >../../config.h:900: error: expected `,' or `;' before "extern"
> What's on config.h line 900? Does it work if you build without
See #121105. I was able to investigate the pre-processed file and find out that config.h:900 isn't the problem at all,
the problem comes from a stray "_PATH_MNTTAB" in global.cpp (and since it's the last thing before config.h, the
parsing fails on config.h:900). No idea where that _PATH_MNTTAB comes from though (can anyone who reads
pre-processed stuff better than me look at #121105?).
Looking at the pre-processed sources I noticed that the prototypes in config.h are seen
many many times... To speed up compilation, shouldn't config.h have an include guard
(#ifndef CONFIG_H_INCLUDED/#define CONFIG_H_INCLUDED)? Well maybe not possible
with autoconf, but something to do with the new build system(s) :)
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel