Hi,

To prepare for the C++ release IRC chat tomorrow morning, I'm trying to build the C++ SDO runtime and am getting a build error:
Environment: Redhat Linux Enterprise 4 on a Thinkpad

Here's the error I'm getting:
make[5]: Entering directory `/home/delfinoj/Tuscany/apache-repos/cpp/sdo/runtime/core/test' if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../runtime/core/test -I../../../runtime/core/src -g -O2 -MT sdotest.o -MD -MP -MF ".deps/sdotest.Tpo" -c -o sdotest.o sdotest.cpp; \ then mv -f ".deps/sdotest.Tpo" ".deps/sdotest.Po"; else rm -f ".deps/sdotest.Tpo"; exit 1; fi sdotest.cpp: In static member function `static int sdotest::conversiontest()':
sdotest.cpp:1135: error: integer constant is too large for "long" type
sdotest.cpp: In static member function `static int sdotest::maintest()':
sdotest.cpp:2569: error: integer constant is too large for "long" type
sdotest.cpp:2575: error: integer constant is too large for "long" type
make[5]: *** [sdotest.o] Error 1

On line 1135, in the following statement:
dor->setLong("long", 0xFFFFFFFFFFFF);
the constant is too big for a long. Same problem on lines 2569 and 2575.
I suggest adding an import <limits.h> and using LONG_MAX to be more portable.

After fixing these 3 lines the whole SDO runtime builds nicely.

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to