[omniORB] Beginer's question on omniidl
Guangyu Gu
g_y_2000@hotmail.com
Sat, 15 Jul 2000 20:56:47 CDT
Today I downloaded the omniORB 3.0, and tried to compile
the echo.idl in /src/example/echo. I am running the
omniORB v3.0 on a x86 machine.
I typed "omniidl -bcxx echo.idl" as instructed by the
user guide. I noticed that the hh file and cc file contain
no information on the echo interface.
What can I do to get the valid stub files? Thanks.
The echo.idl is a simple file.
#ifndef __ECHO_IDL__
#define __ECHO_IDL__
interface Echo {
string echoString(in string mesg);
};
#endif
The resulted files are
omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2301 -D__OMNIIDL_CXX__ echo .hh
and
omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2301 -D__OMNIIDL_CXX__ echoSK .cc
Here is the .HH file
// This file is generated by omniidl (C++ backend)- omniORB_3_0. Do not
edit.
#ifndef
__omnicpp__lang_c____undef__D____OMNIIDL_____0x2301__D____OMNIIDL__CXX_____echo_hh__
#define
__omnicpp__lang_c____undef__D____OMNIIDL_____0x2301__D____OMNIIDL__CXX_____echo_hh__
#ifndef USE_omniORB_logStream
#define USE_omniORB_logStream
#endif
#ifndef __CORBA_H_EXTERNAL_GUARD__
#include <omniORB3/CORBA.h>
#endif
#ifdef USE_stub_in_nt_dll
#ifndef USE_core_stub_in_nt_dll
#define USE_core_stub_in_nt_dll
#endif
#ifndef USE_dyn_stub_in_nt_dll
#define USE_dyn_stub_in_nt_dll
#endif
#endif
#ifdef _core_attr
# error "A local CPP macro _core_attr has already been defined."
#else
# ifdef USE_core_stub_in_nt_dll
# define _core_attr _OMNIORB_NTDLL_IMPORT
# else
# define _core_attr
# endif
#endif
#ifdef _dyn_attr
# error "A local CPP macro _dyn_attr has already been defined."
#else
# ifdef USE_dyn_stub_in_nt_dll
# define _dyn_attr _OMNIORB_NTDLL_IMPORT
# else
# define _dyn_attr
# endif
#endif
#undef _core_attr
#undef _dyn_attr
#endif //
__omnicpp__lang_c____undef__D____OMNIIDL_____0x2301__D____OMNIIDL__CXX_____echo_hh__
The .CC file is
// This file is generated by omniidl (C++ backend)- omniORB_3_0. Do not
edit.
#include "omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2301 -D__OMNIIDL_CXX__
testidl.hh"
#include <omniORB3/callDescriptor.h>
static const char* _0RL_library_version = omniORB_3_0;
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com