[omniORB] Linker Error 2001/1120 MSVC2015

Steven . stevenskeard at gmail.com
Wed Sep 23 17:09:06 BST 2015


Actually figured this out myself, and now I feel dumb because I spent 2
days trying.

Instead of :
myObject = orb->CORBA::ORB::string_to_object(corba_str.c_str());

It should just be:
myObject = orb->string_to_object(corba_str.c_str());

On Tue, Sep 22, 2015 at 10:58 AM, Steven . via omniORB-list <
omniorb-list at omniorb-support.com> wrote:

> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>
>
> ---------- Forwarded message ----------
> From: "Steven ." <stevenskeard at gmail.com>
> To: omniorb-list at omniorb-support.com
> Cc:
> Date: Tue, 22 Sep 2015 10:58:27 -0230
> Subject: Linker Error 2001/1120 MSVC2015
> If I try to invoke the following, I receive the linker error, stating
> unresolved external symbol.
>
> <snip>
>
> CORBA::ORB_var orb;
> CORBA::Object_ptr myObject;
> const std::string corba_str = "corbaloc::" + curr_ip + ":" + curr_port +
> "/ClientSessionManagerInterface";
>
> orb = CORBA::ORB_init(argc, argv);
> myObject = orb->CORBA::ORB::string_to_object(corba_str.c_str());
>
> <snip>
>
> I can find the declaration for string_to_object() in CORBA_ORB.h, but
> clearly I am missing the .lib that contains the definition. What .lib
> should be included?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20150923/2cf323f1/attachment.html>


More information about the omniORB-list mailing list