[omniORB] compilation problem of zero-length arrays
Masaaki Sekiya
sekiya at ydc.co.jp
Mon Jan 5 20:03:23 GMT 2009
Hi.
I got source files from CVS and compiled them.
But compilation errors occurs as below.
-------
aCC -AA +DD64 -g -D_REENTRANT -D_RWSTD_MULTI_THREAD -D_RW_MULTI_THREAD -
D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L -DHP11 -D_HPUX_SOURCE -
D__HPACC_TRICTER_ANSI__ -D_HP_NAMESPACE_STD -c -O -w +inst_v -mt -I.. -I.
/.. -I../../../../include/omniORB4/internal -I../../../../include/
omniORB4/internal -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -
DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING='"4.1.
3"' -DOMNIORB_VERSION_HEX='0x040103F1' -DCONFIG_DEFAULT_LOCATION='"/etc/
omniORB.cfg"' -DCONFIG_ENV='"OMNIORB_CONFIG"' -DUnixArchitecture -I. -I.
-I../../../../include -I../../../../include -D__OSVERSION__=11 -
D__hpux__ -D__ia64__ -o static/bootstrapstub.o bootstrapstub.cc
"../omniORB4/bootstrapSK.cc", line 171: error #3345: an empty
initializer is invalid for an array with unspecified bound
const char* const _0RL_cd_96f078e2247ab9da_00000000::_user_exns[] = {
^
"../omniORB4/bootstrapSK.cc", line 230: error #3345: an empty
initializer is invalid for an array with unspecified bound
const char* const _0RL_cd_96f078e2247ab9da_20000000::_user_exns[] = {
--------
It is caused by a declaration of zero-length arrays in bootstrapSK.cc.
Gcc allows zero-length arrays , but HP aCC does't allow.
How can I get rid of these errors?
My environments are as below.
UP-UX B.11.31
aCC complier 64bits
HP C/aC++ for Integrity Servers B3910B A.06.15
Thanx in advance.
More information about the omniORB-list
mailing list