You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Paolo Moroni <p....@yahoo.it> on 2007/05/18 16:51:09 UTC

Compile error after gcc upgrade (from 4.1.1 to 4.1.2)

Hi everyone,
I'm having a problem since today when I updated gcc
from 4.1.1 to 4.1.2 on my gentoo box (I'm using
Xerces-c 2.7.0-r1). 
I get the following error while trying to build my own
application using Xerces library:

/usr/include/xercesc/util/XercesVersion.hpp:198:
error: expected constructor, destructor, or type
conversion before 'const'

That file contains mostly #define directives apart
from 5 variable definitions. And it is there where I
get the error 
198: const char* const gXercesVersionStr = 
XERCES_VERSIONSTR;
199: const char* const    gXercesFullVersionStr =
XERCES_FULLVERSIONSTR;
200: const unsigned int   gXercesMajVersion =
XERCES_VERSION_MAJOR;
201: const unsigned int   gXercesMinVersion =
XERCES_VERSION_MINOR;
202: const unsigned int   gXercesRevision   =
XERCES_VERSION_REVISION;

I haven't changed that file so I suppose it is
something related to the new gcc. Has anyone ever had
this kind of problem? Thank you in advance.

Paolo 


      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

Re: Compile error after gcc upgrade (from 4.1.1 to 4.1.2)

Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Paolo,

Paolo Moroni <p....@yahoo.it> writes:

> I'm having a problem since today when I updated gcc
> from 4.1.1 to 4.1.2 on my gentoo box (I'm using
> Xerces-c 2.7.0-r1).

I just tried to build the official Xerces-C++ 2.7.0 with
g++ 4.1.3 prerelease (this is as close as I could get to
4.1.2 on my Debian box). Everything went fine. I think
there is some setup problem with your box.

I also successfully built Xerces-C++ with the newly released
g++ 4.2.0.


hth,
-boris

-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding