[omniORB] omniORB2 with Borland C++ Builder app => Compilation Errors!!!

David Morgenlender dmorgen@alum.mit.edu
Mon, 20 Apr 1998 18:08:31 GMT


Sai-Lai,

The last remaining problem (cerr << string) has been resolved, or at =
least
Borland has provided a workaround.  Here' a message I just received from =
Borland
tech support:


-------------------------------------------------------------------------=
------------------

Well I was wavering between bug and not a bug. I was a bit hasty in my =
decision
to send you a "not a bug" reply. It could very well be as designed but it=
 would
seem a somewhat poor design if this were the case.=20

The reason you must turn the option on is that the VCL requires that =
enums not
be allocated as ints. If you look in your .bpr file you can see the -b- =
option
is in the CFLAG1 line. It is extremely important that you turn this =
option off
when it is not needed, as it will cause all sorts of trouble with the =
VCL.

As for 18444:=20

class I {
  public:
	enum F { F_1, F_2 };

	// This is never called for >>=3D in main()!!!
	friend void operator>>=3D(F a, S& s);
  };
	void operator>>=3D(I::F a, S& s){
		cerr << "operator>>=3D(F a, S& s)" << endl;
	}

appears to resolve the name lookup issue.

The problem with cerr appears to be caused by explicit reference to the
X::operator>>=3D. When X::operator>>=3D is moved into the namespace or =
when the
namespace is implied the problem goes away.

I believe both of these to be bugs and will forward the pertinent =
information on
to R&D.


-------------------------------------------------------------------------=
------------------

As I said, I'm working on something else, probably this whole week ... my
development system for the CORBA project is being repaired.  When I get =
back to
this, I'll try the latest omniORB2 you provided, & let you know how =
things go.
Meanwhile, if you learn anything new, I'd love to hear about it!

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
Dave Morgenlender
e-mail: dmorgen@alum.mit.edu
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D