ubuntu下omniORB例子
一、开发环境安装 18.04 sudo apt install omniorb omniorb-idl omniidl libomniorb4-dev libomniorb4-2 omniorb-nameserver libomnithread4 libomnithread4-dev 16.04 $ sudo apt install omniorb omniorb-idl omniidl libomniorb4-dev libomniorb4-1 omniorb-nameserver libomnithread3c2 libomnithread3-dev 二、源文件: time.idl interface Time{ short get_gmt(); }; myserver.cc #include <iostream> #include "time.hh" using namespace std; class Time_impl:public virtual POA_Time{ public : virtual short get_gmt(); }; short Time_impl::get_gmt(){ return 1; } int main(int argc, char* argv[]){ try{ CORBA::ORB_var orb = CORBA::ORB_init