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
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top