Menu

Solaris compile failed

Anonymous
2001-05-29
2001-05-30
  • Anonymous

    Anonymous - 2001-05-29

    I tried to install the CppUnit 1.5.5 for Solaris5.7. I am using Sun Workshop 5.0 for C++ compiler.

    I followed the INSTALL instructions carefully. But I am getting the following compilation errors?Any ideas would be appreciated.
    thanks,
    Nath Shivapuja
    ShivapujaNath@JohnDeere.com

    Making install in cppunit
    /bin/sh ../../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../../include     -O2 -c TestCase.cpp
    CC -DHAVE_CONFIG_H -I. -I. -I../../include -O2 -c TestCase.cpp  -KPIC -DPIC -o TestCase.o
    "TestCase.cpp", line 116: Error: type_info must be initialized.
    "TestCase.cpp", line 116: Error: "," expected instead of "&".
    "TestCase.cpp", line 117: Error: thisClass is not defined.
    "TestCase.cpp", line 117: Error: Badly formed expression.
    "TestCase.cpp", line 117: Error: Cannot cast from int to std::basic_string<char, std::char_traits<char>, std::allocator<char>>.
    5 Error(s) detected.
    *** Error code 1
    make: Fatal error: Command failed for target `TestCase.lo'

     
    • Anonymous

      Anonymous - 2001-05-30

      Yes, I am having the same problem.  I solved by adding std:: in front of type_info on line 116.  I had to do the same for some compile errors with "exeception".  Did you have the same problem with execeptions?

      I now have binding problems.  I think I need to build my libs using CC -xar.  I am new to Solaris, SunWorkshop, and CppUnit, so I am somewhat uncertain.  Any help you can give would be appreciated.

       

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.