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'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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'
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.