Compile error on RedHat Linux

Hi Everybody,

I get a compile error, when compiling OpenCASCASDe on Red Hat Linux:
Any ideas how to resolve this?

Regards
Holger

g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/home/local/stlport -I../../../inc -I../../../drv/FSD -I../../../src/FSD -I../../../drv/MMgt -I../../../src/MMgt -I../../../drv/OSD -I../../../src/OSD -I../../../drv/Plugin -I../../../src/Plugin -I../../../drv/Quantity -I../../../src/Quantity -I../../../drv/Resource -I../../../src/Resource -I../../../drv/SortTools -I../../../src/SortTools -I../../../drv/Standard -I../../../src/Standard -I../../../drv/StdFail -I../../../src/StdFail -I../../../drv/Storage -I../../../src/Storage -I../../../drv/TColStd -I../../../src/TColStd -I../../../drv/TCollection -I../../../src/TCollection -I../../../drv/TShort -I../../../src/TShort -I../../../drv/Units -I../../../src/Units -I../../../drv/UnitsAPI -I../../../src/UnitsAPI -I../../../drv/IncludeLibrary -I../../../src/IncludeLibrary -I../../../drv/Dico -I../../../src/Dico -I../../../drv/NCollection -I../../../src/NCollection -I../../../drv/Message -I../../../src/Message -I/home/local/stlport -g -DDEB -D_DEBUG -ffriend-injection -fpermissive -MT Standard_SStream.lo -MD -MP -MF .deps/Standard_SStream.Tpo -c ../../../src/Standard/Standard_SStream.cxx -fPIC -DPIC -o Standard_SStream.lo
../../../src/Standard/Standard_SStream.cxx: In function 'stlpmtx_std::ostream& operator ../../../src/Standard/Standard_SStream.cxx:29: error: no match for 'operator::str() const [with _CharT = char, _Traits = stlpmtx_std::char_traits, _Alloc = stlpmtx_std::allocator]()'
/home/local/stlport/stl/_ostream.h:78: note: candidates are: stlpmtx_std::basic_ostream<_chart _traits="">& stlpmtx_std::basic_ostream<_chart _traits="">::operator& (*)(stlpmtx_std::basic_ostream<_chart _traits="">&)) [with _CharT = char, _Traits = stlpmtx_std::char_traits]

Alvaro's picture

Try applying these patches instead of using fpermissive and ffriend-injection:

http://www.cae.wisc.edu/~kraftche/OCC/patches.html

Holsmo's picture

Hi Alvaro,
thanks! sstream_compatibility.patch helped me over my compile problem. Next I'll try the remaining patches.
Holger