Discussion:
[omniORB] Interceptor clientSendRequest - compilation error
Arne Bruhn
2008-05-13 19:48:13 UTC
Permalink
Hi,
when I am trying to compile this code I get an 2 errors:
" Interceptors.cpp: 224: error: invalid use of incomplete type 'struct
omni::GIOP_C'
/usr/include/omniORB4/omniInterceptors.h:87 error: forward declaration
of ' struct omni::GIOP_C'
"
Code:
//really just this include
#include <omniORB4/omniInterceptors.h>

CORBA::Boolean
Interceptors::clientSendRequest(omni::omniInterceptors::clientSendRequest_T::info_T
&_info)
{
GIOP::Version ver = _info.giop_c.version(); // line 224
return true;
}

I checked
codeSets.cc/setCodeSetServiceContext(omniInterceptors::clientSendRequest_T::info_T&
info)
and you are doing exactly the same in line 689 ( omniORB4.1.2).

I registered the Interceptors after orb.init and other Interceptors like
the encodeIOR-Interceptor work very well for me.
I got no clue whats wrong here. It looks like the includes are messed
up.I would be glad about any hint.

The system here is an openSuse10.3/gcc version 4.2.1

Thanks in advance
Arne
--
AlsterAero GmbH
Arne Bruhn
L?becker Stra?e 1
22087 Hamburg
Tel. Zentral: +49 40 2482712-0
Direkt: +49 40 2482712-14
Fax +49 40 2482712-22
Amtsgericht Hamburg - HRB 96212
Gesch?ftsf?hrer: Malte Lafrentz

This message contains confidential and/or privileged information.
The contents of this message must not be disclosed to other persons
without prior written consent by Titus von Boxberg / AlsterAero GmbH.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action
based on this message or any information herein.
If you have received this message in error, please advise the
sender immediately by reply e-mail and delete this message including
all attachments. Thank you for your cooperation.
Arne Bruhn
2008-05-19 14:52:32 UTC
Permalink
Post by Arne Bruhn
Hi,
" Interceptors.cpp: 224: error: invalid use of incomplete type 'struct
omni::GIOP_C'
/usr/include/omniORB4/omniInterceptors.h:87 error: forward declaration
of ' struct omni::GIOP_C'
"
The solution is for the following include list:

#include <omniORB4/CORBA.h>
#include <omniORB4/omniInterceptors.h>
#include <omniORB4/linkHacks.h>
#include <omniORB4/IOP_S.h>
#include <omniORB4/internal/exceptiondefs.h>
#include <omniORB4/internal/giopStream.h>
#include <omniORB4/internal/giopStrand.h>
#include <omniORB4/internal/giopRope.h>
#include <omniORB4/internal/GIOP_S.h>
#include <omniORB4/internal/GIOP_C.h>
#include <omniORB4/internal/initialiser.h>
#include <omniORB4/internal/giopStreamImpl.h>
#include <omniORB4/internal/giopRope.h>
#include <omniORB4/internal/GIOP_C.h>
#include <omniORB4/internal/orbOptions.h>
#include <omniORB4/internal/orbParameters.h>
#include <stdio.h>

Arne
--
AlsterAero GmbH
Arne Bruhn
L?becker Stra?e 1
22087 Hamburg
Tel. Zentral: +49 40 2482712-0
Direkt: +49 40 2482712-14
Fax +49 40 2482712-22
Amtsgericht Hamburg - HRB 96212
Gesch?ftsf?hrer: Malte Lafrentz

This message contains confidential and/or privileged information.
The contents of this message must not be disclosed to other persons
without prior written consent by Titus von Boxberg / AlsterAero GmbH.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action
based on this message or any information herein.
If you have received this message in error, please advise the
sender immediately by reply e-mail and delete this message including
all attachments. Thank you for your cooperation.
Loading...