I have problem with CppUnit (v 1.12.1) on Sol 10 with Sun CC 5.9.
I succeeded with library compilation ( ./configure CC=cc CXX=CC LDFLAGS=" -lm" ), but when I try to compile my unit tests and then run, I get segmentation faults.
Probably this is because my applications use stlport4 library (-library=stlport4 compilation option).
I didn't managed to compile CppUnit with this option. Adding -library=stlport4 to CXXFLAGS and/or to LDFLAGS causes compilation or linker errors.
I'd appreciate any suggestions how to compile it.
Env:
uname -a
SunOS xxx 5.10 Generic_127111-08 sun4v sparc SUNW,SPARC-Enterprise-T5120
Compiler:
> cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
> CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Seems that following configure options help in my case:
./configure CC=CC CXX=CC CXXFLAGS="-library=stlport4" LDFLAGS="-library=Cstd -library=Crun -lm"
Regards,
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have problem with CppUnit (v 1.12.1) on Sol 10 with Sun CC 5.9.
I succeeded with library compilation ( ./configure CC=cc CXX=CC LDFLAGS=" -lm" ), but when I try to compile my unit tests and then run, I get segmentation faults.
Probably this is because my applications use stlport4 library (-library=stlport4 compilation option).
I didn't managed to compile CppUnit with this option. Adding -library=stlport4 to CXXFLAGS and/or to LDFLAGS causes compilation or linker errors.
I'd appreciate any suggestions how to compile it.
Env:
uname -a
SunOS xxx 5.10 Generic_127111-08 sun4v sparc SUNW,SPARC-Enterprise-T5120
Compiler:
> cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
> CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
Ok, problem fixed.
Seems that following configure options help in my case:
./configure CC=CC CXX=CC CXXFLAGS="-library=stlport4" LDFLAGS="-library=Cstd -library=Crun -lm"
Regards,
Greg