[omniORB] HELP compiling example with Borland 5

Sander van Geloven sander@isi.uu.nl
Wed, 09 Aug 2000 11:44:18 +0200


Hi,

I'm having a real problem compiling an omniORB 3 example with Borland
BCB 5.0

The project I use is a standard console application. All
environment settings are OK and all necessary libs are in the project.
the only files which are in the project are echoSK.cpp and eg1.cpp from
the echo example.

If I compile eg1.cpp of omniORB 3.0, I'll get the following two errors:

  [C++ Error] omnithread.h(519): E2321 Declaration does not specify a
tag
  or an identifier

for:
OMNI_THREAD_EXPOSE:
    OMNI_THREAD_IMPLEMENTATION


and
  [C++ Fatal Error] CORBA_sysdep.h(376): F1003 Error directive: "Name
  conflict: _T is defined as a macro in a header file included before
  this."

for:
#ifdef _T
#error "Name conflict: _T is defined as a macro in a header file
included before this."
// FreeBSD's ctype.h, and maybe other files, define _T. omniORB uses
// _T in various places as a class name. Fix this error by moving the
// offending header after all omniORB includes.
#endif

What should I do to fix this? Or does anyone have some Borland project
files for omniORB examples for me.

Sander