Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Preprocessor CORBA nightmares

Preprocessor CORBA nightmares

Preprocessor CORBA nightmares


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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close