[omniORB] Problems with omniORB and Borland

Jens Stål Hansen Jens@Cue.dk
Tue, 24 Jul 2001 13:55:38 +0200


> We are using the C++ Builder IDE.
>
> Adding the "NTArchitecture;_RTDLL" seem to do the trick :)
> omniNames is running and objects are registred.
>

It seemed that I was a bit quick; server part compiles and seems to run ok,
but when I try to
compile the client I get a lot of :
[C++ Error] urlmon.h(1807): E2015 Ambiguity between '_fastcall
System::operator +(int,const Currency &)' and '+'

which is defined as:

typedef /* [public] */
enum __MIDL_ICodeInstall_0001
    { CIP_DISK_FULL = 0,
 CIP_ACCESS_DENIED = CIP_DISK_FULL + 1,
 CIP_NEWER_VERSION_EXISTS = CIP_ACCESS_DENIED + 1,
 CIP_OLDER_VERSION_EXISTS = CIP_NEWER_VERSION_EXISTS + 1,
 CIP_NAME_CONFLICT = CIP_OLDER_VERSION_EXISTS + 1,
 CIP_TRUST_VERIFICATION_COMPONENT_MISSING = CIP_NAME_CONFLICT + 1,
 CIP_EXE_SELF_REGISTERATION_TIMEOUT =
CIP_TRUST_VERIFICATION_COMPONENT_MISSING + 1,
 CIP_UNSAFE_TO_ABORT = CIP_EXE_SELF_REGISTERATION_TIMEOUT + 1,
 CIP_NEED_REBOOT = CIP_UNSAFE_TO_ABORT + 1
    } CIP_STATUS;

in urlmon.h (a lot of other files too), which comes with Borland C++

Any pointers -- do I need to #define / #undef something ?

  Jens