Compilation error on linux Suse 9.1

Hi,

When compiling the Opencasde librairies, I got the following
message :
dhcppc0:/opt/OpenCASCADE5.2/ros/adm/make/FWOSPlugin # make
if /bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../inc -I../../../drv/FWOSDriver -I../../../src/FWOSDriver -g -O2 -DCSFDB -DNO_CXX_EXCEPTION -DNo_Exception -DNDEBUG -DLIN -DLININTEL -MT FWOSDriver.lo -MD -MP -MF ".deps/FWOSDriver.Tpo" \
-c -o FWOSDriver.lo `test -f '../../../src/FWOSDriver/FWOSDriver.cxx' || echo './'`../../../src/FWOSDriver/FWOSDriver.cxx; \
then mv ".deps/FWOSDriver.Tpo" ".deps/FWOSDriver.Plo"; \
else rm -f ".deps/FWOSDriver.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../inc -I../../../drv/FWOSDriver -I../../../src/FWOSDriver -g -O2 -DCSFDB -DNO_CXX_EXCEPTION -DNo_Exception -DNDEBUG -DLIN -DLININTEL -MT FWOSDriver.lo -MD -MP -MF .deps/FWOSDriver.Tpo -c ../../../src/FWOSDriver/FWOSDriver.cxx -fPIC -DPIC -o FWOSDriver.lo
../../../src/FWOSDriver/FWOSDriver.cxx:12:18: pasting "FWOSDriver" and "::" does not give a valid preprocessing token
make: *** [FWOSDriver.lo] Error 1

the version of the g++ compiler is 3.3.3
This piece of code compiles when using the intel compiler icc
(version 8.0).

Some hints to solve this problem?

Thanks a lot

Martin Zulliger's picture

Same here. I'm using gcc 3.3.3 as well under SuSE Linux 9.1 (yes, I know, not officially supported by Open CASCADE).
It seems that some sort of checking has gotten tougher vs older gcc versions. Can someone confirm this? Any workaround known?

Werner's picture

Hi Farid,
see "gcc3.3 and the DPLUGIN macro" in this forum.
Regards
Werner