Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preprocessor CORBA nightmares

Status
Not open for further replies.

barneygovan

Programmer
Feb 16, 2001
1
GB
Hi,

My problem is this:

I have a server exposing a CORBA object (written in C++). This works perfectly if I initialise the ORB in the main() function but if I encapsulate the ORB code into an object, to isolate the CORBA code from the rest of the program, then I get a run time error on the CORBA::ORB_init() method call.

A very bad solution that we found was to #include the main header file for the ORB into the .cpp file with the main() function in it. However, this is only feasible to do in very simple programs, and we cannot stipulate that everyone using our component will have to link against the ORB. Also it plays havoc with our other #includes.

I am using the ACE ORB (version 1.0 I believe) and was wondering if anyone else has had a similar problem and if so, how was it solved?

Thanks in advance

Barney Govan
R&D Engineer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top