Menu

HELP: Compilation under Linux

Help
Andargor
2003-09-15
2003-09-19
  • Andargor

    Andargor - 2003-09-15

    Ok, I am not heeding the dire warning about using the latest version of g++.

    I'm getting this error using egcs-2.91.66:

    g++ -g -Wall -Wstrict-prototypes -O2  -I./src  -c -o src/XmlRpcValue.o src/XmlRpcValue.cpp
    In file included from src/XmlRpcValue.cpp:5:
    src/base64.h:41: parse error before `<'
    src/base64.h:47: confused by earlier errors, bailing out
    make: *** [src/XmlRpcValue.o] Error 1

    Any help?

    Andargor

     
    • Paul S R Chisholm

      > I'm getting this error using egcs-2.91.66:

      The README states, "You do need a fairly recent compiler (g++ 3.1 ...)" I tried 2.95.3 with no luck; 3.1 and 3.2.2 work fine.

      Hope this helps!  --PSRC

       
      • Anonymous

        Anonymous - 2003-09-19

        I have also the problem to get it running under gcc 2.95, because this is what you need to build Qtopia based device (embedded linux, for example sharp zaurus)
        I think it should be possible to let it run under 2.95, the compiler is not so bad.
        But have not succeed yet. At least I was able to compile my own file by changing XmlRpcValue.h like this:
        //    XmlRpcValue const& operator[](int i) const { assertArray(i+1); return _value.asArray->at(i); }

            XmlRpcValue const& operator[](int i) const
                    { assertArray(i+1); return (*(_value.asArray))[i]; }

        because there is an older STL which seem not to have the vector::at() method.

         
    • Andargor

      Andargor - 2003-09-15

      Um:

      > Ok, I am not heeding the dire warning about using the latest version of g++

      So, yeah, I know. Unfortunately, I have an RH 6.2 box with other stuff on it and can't upgrade easily.

      So, if anyone knows a workaround for what is obviously a nested template problem, I'd be glad to hear it.

      Andargor

       

Log in to post a comment.