[omniORB] Build Error Reported from CORBA_sysdep.h

Fredrik Jonsson fredrik.jonsson@sea.ericsson.se
Wed, 3 Jun 1998 16:01:33 +0200


On Wednesday, June 03, 1998 11:40 AM, merskin@nswc.navy.mil 
[SMTP:merskin@nswc.navy.mil] wrote:
> Hi;
>
> When I build my application I get the following issued from
> CORBA_sysdep.h:
>
> /usr/omniORB_2.5.0/include/omniORB2/CORBA_sysdep.h:187 #error "The byte
> order of this platform
> is unknown."
>
> /usr/omniORB_2.5.0/include/omniORB2/omnithread.h:128 #error "No
> implementation header file."
> /usr/omniORB_2.5.0/include/omniORB2/omnithread.h:139 #error
> "Implementation header file incomplete."
>
> Clues?

My own "template" for setting up new omniORB25 projects:

Build with these defines:
/D WIN32
/D _MBCS
/D _WIN32_WINNT=0x0401
/D __WIN32__
/D __x86__
/D __OSVERSION__=4
/D __NT__
/D __OMNIORB2__

And the following compiler flags:
/GX /GR /MD

Remember to link with these libraries:
  wsock32.lib advapi32.lib ws2_32.lib
and
  omniORB24_rtd.lib omnithread2_rtd.lib (debug)
or
  omniORB24_rt.lib omnithread2_rt.lib (release)

Also, include the OS dep file windows.h or stdafx.h (depending on
project) before including omniorb header files.

--
F. Jonsson