[omniORB] compiling problem with omnithread

W T Meyer meyer at iastate.edu
Tue Apr 8 14:42:39 BST 2008

I get the following error messages when I try to compile my 
application using g++ version 3.4.6 under Scientific Linux 4.5.  It 
may well be a problem with the upgrade to SL 4.5, but I can't locate 
the source.  Does anyone have helpful thoughts?  Things to try?


Tom Meyer, Iowa State University

g++  -o CoRCCServer.o -c -g -Wall -Wno-unused -fexceptions 
ENTRANT -D__OSVERSION__=2 -D__linux__ -D__x86__ -DCSTYLE -I. 
B/release/stub -I/usr/local/omniORB/release/build/include 
elease/include -I/usr/lib/bcc/include -IMNIORB_TOP/include/omnithread 
In file included from /usr/include/pthread.h:20,
                  from /usr/local/omniORB/release/include/omnithread.h:134,
                  from /usr/local/omniORB/release/include/omniORB4/CORBA.h:310,
                  from CoRCC.hh:10,
                  from CoRCCServer.cc:25:
/usr/include/sched.h:41: error: expected initializer before "__THROW"

[there follows many more of the "expected initializer" errors from 
many lines in sched.h and pthread.h ]

More information about the omniORB-list mailing list