undefined reference to `CORBA::ValueBase::ValueBase()' , how can I solve it? (which library to use in omniORB)

StackOverflow https://stackoverflow.com/questions/20902757

  •  23-09-2022
  •  | 
  •  

Question

I am using omniORB for CORBA in C++.

when I used omniidl, compiler to generate stub and skeleton files for an idl file, auto generated code inherits the given class from public ::CORBA::ValueBase.

During compilation I am getting an error of undefined constructor & destructor for ::CORBA::ValueBase.

As it is a standard file I can't define constructor & destructor for it. Can anybody please let me know which library contains the definations or how to avoid it?

Was it helpful?

Solution

libomniDynamic4 contains the definition of ::CORBA::ValueBase, so including the library in linking path solves the linking errors and application compiles successfully.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top