[omniORB] omniEvents & cygwin

caoy guaguo at vip.sina.com
Sun Apr 4 22:06:55 BST 2004


   I found I coundn't install omniEvents-2.5.1 under cygwin + win2000 environments.I had successfully installed omniORB-4.0.3 under such environments before by using patch file for omniORB on cygwin. But when I do the make for omniEvents,it finally output some error messages:


make -C idl all
make[1]: Entering directory `/home/omniORB-4.0.3/contrib/omniEvents-2_5_1/idl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/omniORB-4.0.3/contrib/omniEvents-2_5_1/idl'
make -C src all
make[1]: Entering directory `/home/omniORB-4.0.3/contrib/omniEvents-2_5_1/src'
g++ -c -I/usr/local/include  -DHAVE_CONFIG_H  -I../idl -I../src -DENABLE_CLIENT_IR_SUPPORT=1 -g -O2 -fPIC  omniEventsLog.cc
cc1plus: warning: -fPIC ignored for target (all code is position independent)
omniEventsLog.cc: In constructor `OmniEvents::omniEventsLog::omniEventsLog(int, 
   const char*)':
omniEventsLog.cc:308: error: invalid conversion from `int' to `const char*'
omniEventsLog.cc:308: error:   initializing argument 1 of `
   std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, 
   std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]'
omniEventsLog.cc: In member function `void 
   OmniEvents::omniEventsLog::openOfstream(std::ofstream&, const char*, int, 
   int*)':
omniEventsLog.cc:659: error: invalid conversion from `int' to `
   std::_Ios_Openmode'
omniEventsLog.cc:659: error:   initializing argument 2 of `void 
   std::basic_ofstream<_CharT, _Traits>::open(const char*, std::_Ios_Openmode) 
   [with _CharT = char, _Traits = std::char_traits<char>]'
make[1]: *** [omniEventsLog.o] Error 1
make[1]: Leaving directory `/home/omniORB-4.0.3/contrib/omniEvents-2_5_1/src'
make: *** [all] Error 2

How to deal with it? 
Thank you very much.
______________________________________

===================================================================



More information about the omniORB-list mailing list