[omniORB] SUN C++ compiler HAS_Cplusplus_Bool !

Wernke zur Borg Wernke.zur.Borg at vega.de
Thu Sep 29 15:35:59 BST 2005


During my attempts to compile omniORB 4.0.develop on Sun I came across a
missing macro  'HAS_Cplusplus_Bool' in the file
include/omniORB4/CORBA_sysdep_trad.h, which leads to linking problems later
with the application, because _CORBA_Bool is incorrectly typedef'ed to
unsigned char instead of the native bool type.

This is the correct block:

#elif defined(__SUNPRO_CC) 
// SUN C++ compiler
#  if __SUNPRO_CC >= 0x500
#    if __SUNPRO_CC_COMPAT >= 5
#      define HAS_Cplusplus_Namespace
#      define HAS_Std_Namespace
#      define HAS_Cplusplus_Bool   <== added ==
#    endif
#  endif

A diff file is attached.

Regards,
---
Wernke zur Borg
VEGA Informations-Technologien GmbH
Robert-Bosch-Str. 7
64293 Darmstadt / Germany
Tel: +49-(0)6151-8257-128
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniORB_patch.diff
Type: application/octet-stream
Size: 357 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050929/d4c5220e/omniORB_patch.obj


More information about the omniORB-list mailing list