Menu

Unable to compile: Solaris 8 + SunWS 5.0

Help
Anonymous
2001-11-30
2002-09-26
  • Anonymous

    Anonymous - 2001-11-30

    Hello,

    I'm trying to compile log4cpp with the Sun Workshop C++ compiler (v5.0) on a Solaris 8 box, and I get the following error:

    "../include/log4cpp/Category.hh", line 88: Error: Member Templates not implemented

    I've tried this with v2.5 and v2.6 RC3 - same error

    Am i going to have to go in and specialize the header for this compiler?

    Thanks for your time
    -Jeremy

     
    • Bastiaan Bakker

      Bastiaan Bakker - 2001-11-30

      If you can, upgrade to either to g++ (preferred) or a newer Sun compiler. Compile success has been reported with the SunW CC compiler on Solaris 7. Browse development mailing list archive for details (and linking instructions!).

      Alternatively if you don't need CategoryStreams you can simply comment out the problematic << method. This method isn't used internally by log4cpp.

      Else you need to specialize it yourself.
      In any case I recommend v 0.2.6RC3 over 0.2.5.

      Good luck,

      Bastiaan

       
    • Anonymous

      Anonymous - 2001-12-05

      Thanks for the advice - I've cajoled my project into using gcc-2.95.3 (I can't use gcc-3.0.2 yet, since my project is built on omniORB, which has problems with the gcc-3 series.)

      I get the package to compile (had to comment out call to ::time in the testmain.cpp file), but it then segfaults after I try running testmain.

      Any ideas?

       
      • Matthew Coulson

        Matthew Coulson - 2002-09-26

        I was able to get it to compile 0.2.7 and run successfully on Solaris 8 with gcc 2.95.3 but when I would compile testmain.cpp in order to make it so it didn't segfault upon execution I had to statically link.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.