Compilation error on linux Suse 9.1


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; \
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 compile when using the intel compiler icc
(version 8.0).

Some hints to solve this problem?

Thanks a lot

Danis's picture

I have the same problem when running on the SuSE 9.0. can anyone help?


rs's picture


Search for FWOSDriver in this forum!