Menu

#4 Unable to build xmltk1.11 with gcc4.1 on Fedora Core 5 Linux

open
nobody
None
5
2007-06-29
2007-06-29
No

Build environment:
[xxx@xxx ~]$ uname -a
Linux xxx 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686 i386 GNU/Linux
[xxx@xxx ~]$ gcc --version
gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[xxx@xxx ~]$ flex --version
flex version 2.5.4
[xxx@xxx ~]$ bison --version
bison (GNU Bison) 2.1

Error(s):
xxx/include/../xpathDFA/XPath.h:74: error: extra qualification ‘PString::’
on member ‘operator new’
xxx/include/../xpathDFA/XPath.h:75: error: extra qualification ‘PString::’
on member ‘operator delete’

First possible solution:
change rows 74-75 in file xpathDFA/XPath.h from:
void * PString::operator new(size_t s);
void PString::operator delete(void * p);
to:
void * /*PString::*/operator new(size_t s);
void /*PString::*/operator delete(void * p);
Good solution:
#ifdef
void * PString::operator new(size_t s);
void PString::operator delete(void * p);
#else
void * operator new(size_t s);
void operator delete(void * p);
#endif

Discussion


Log in to post a comment.