From: <on...@ac...> - 2002-10-21 00:53:41
|
Hi Steffi, From: Stefanie Scherzinger <sch...@fm...> Subject: [Xmltk-devs] cannot compile XMLTK with version newer than gcc 2.96 Date: Fri, 18 Oct 2002 13:30:03 +0200 (MET DST) Message-ID: <Pin...@be...> >I had to switch systems and re-compile the xmltk source code. However, I >can't get it to work. > >For XMLTK, gcc version 2.96 or higher is required, as the website states. >Now I don't have 2.96 on my Red Hat 8.0 Linux system and read online >that 2.96 was not an official release. > >Do you have experience and tips with upward-compartibility, e. g. gcc 3.x? I compiled the XMLTK with gcc3.2 on RedHat 7.2 last week. You need some general tips. 1. the STL namespace - you need to add std namespace when you use the STL library. You need to change all "string" to "std::string". - the STL library in gcc3.2 becomes GNU STL. Even though it seems some hacking way (not a right way), but you can compile the XMLTK by adding -D__gnu_cxx=std as a gcc compile option. This means that you need to use "__gnu_cxx" instead of "std" namespace. 2. The exp variable only in the xpathDFA/xmatch.y You need to change the variable name. e.g exp -> expression All of the above make you compile all of the XMLTK except the xagg. I haven't solve the error yet. Good luck! makoto |