|
|
Need help in compilation : Missing header file
Hi,
I am trying to compile the code example given in 'Advance corba
programming with C++'. Got the following compilation error(for chapter
18)
CC -c server.cc -o server.o -I/opt/app/iona/orbix62/asp/6.2/include -
I/opt/app/iona/orbix62/asp/6.2/include/orbix -I/opt/app/iona/orbix62/
asp/6.2/include/omg
"server.hh", line 10: Error: Could not open include file<corba/
poaS.hh>.
"server.hh", line 180: Error: POA_PortableServer is not defined.
"server.hh", line 180: Error: ServantLocator is not defined.
"server.cc", line 783: Error: _this is not a member of
DeviceLocator_impl.
I did search for the header file mentioned above(corba/poaS.hh), but
could not find the file anywhere in the system. I am using orbix.
Kindly let me know how to correct the compilation error.
|
|
0
|
|
|
|
Reply
|
rjkumr (32)
|
11/12/2009 12:09:16 PM |
|
On 12 nov, 07:09, mthread <rjk...@gmail.com> wrote:
> Hi,
> =A0 I am trying to compile the code example given in 'Advance corba
> programming with C++'. Got the following compilation error(for chapter
> 18)
>
> CC -c server.cc =A0-o server.o -I/opt/app/iona/orbix62/asp/6.2/include -
> I/opt/app/iona/orbix62/asp/6.2/include/orbix -I/opt/app/iona/orbix62/
> asp/6.2/include/omg
>
> "server.hh", line 10: Error: Could not open include file<corba/
> poaS.hh>.
[snip]
This header is generated by invoking the IDL compiler on poa.idl
|
|
0
|
|
|
|
Reply
|
ISO
|
11/12/2009 3:00:34 PM
|
|
mthread <rjkumr@gmail.com>:
> I did search for the header file mentioned above(corba/poaS.hh),
> but could not find the file anywhere in the system. I am using
> orbix. Kindly let me know how to correct the compilation error.
That file should be in one of the directory hierarchies specified
by the -I<directory> option to the C++ compiler. If it is missing
then that suggests to me that you have only a partial installation
of Orbix.
One possibility is that somebody might have accidently/maliciously
deleted the include directory.
Another possibility is the following. When installing the Orbix
software, the installer gives you the option to install: (1)
only the runtime files, or (2) the runtime *plus* the development
files. Perhaps whoever installed Orbix choose option (1) instead
of option (2). That would certainly result in the include directory
being missing. However, if that's the case then I *think* the
idl compiler executable should also have been missing.
Regards,
Ciaran.
--
Ciaran McHale, www.CiaranMcHale.com
Email: ciaran _ mchale @ yahoo . co . uk
Mobile: +44-(0)7866-416-134
|
|
0
|
|
|
|
Reply
|
Ciaran
|
11/13/2009 5:01:51 PM
|
|
|
2 Replies
105 Views
(page loaded in 0.057 seconds)
|
|
|
|
|
|
|
|
|