Can't compile generated code
- From: Johan Groth <jgroth dsl pipex com>
- To: orbitcpp-list gnome org
- Subject: Can't compile generated code
- Date: Sun, 29 Jun 2003 02:55:16 +0100
Hi,
I'm trying to compile a very small interface that looks like this
(time.idl):
struct TimeOfDay {
short hour;
short minute;
short second;
};
interface Time {
TimeOfDay get_gmt();
};
I'm using orbit-idl-2 -l cpp to generate the c++ code. However when I
try to compile the generated code a great deal of error messages are
returned.
$ g++ -c -Wall -g `pkg-config ORBit-2.0-cpp --cflags` time-cpp-common.cc
Generates this output:
In file included from time-cpp-stubs.h:11,
from time-cpp-common.cc:6:
time-cpp-common.h:43: error: `TC_TimeOfDay' was not declared in this scope
time-cpp-common.h:84: error: `TC_Time' was not declared in this scope
time-cpp-common.h: In function `void operator<<=(CORBA::Any&, const
TimeOfDay&)
':
time-cpp-common.h:88: error: `TC_TimeOfDay' undeclared (first use this
function)
time-cpp-common.h:88: error: (Each undeclared identifier is reported
only once
for each function it appears in.)
time-cpp-common.h: In function `void operator<<=(CORBA::Any&,
_orbitcpp::stub::Time**)':
time-cpp-common.h:106: error: `TC_Time' undeclared (first use this function)
In file included from time-cpp-common.cc:6:
time-cpp-stubs.h: At global scope:
time-cpp-stubs.h:27: error: invalid constructor; you probably meant `
_orbitcpp::stub::Time (const _orbitcpp::stub::Time&)'
time-cpp-common.cc: In member function `TimeOfDay*
TimeOfDay::_orbitcpp_pack()
const':
time-cpp-common.cc:29: error: `TimeOfDay__alloc' undeclared (first use this
function)
time-cpp-common.cc: In static member function `static void
Time::pack_elem(const Time_mgr&, Time&)':
time-cpp-common.cc:55: error: no match for `Time& = CORBA_Object_type*'
operator
time-cpp-common.h:66: error: candidates are: Time& Time::operator=(const
Time&)
time-cpp-common.cc: In static member function `static void
Time::unpack_elem(Time_mgr&, const Time&)':
time-cpp-common.cc:60: error: no matching function for call to `
duplicate_guarded(const Time&)'
/usr/include/orbitcpp-2.0/orbitcpp/orb-cpp/orbitcpp_tools.h:64: error:
candidates
are: CORBA_Object_type* _orbitcpp::duplicate_guarded(CORBA_Object_type*)
/usr/include/orbitcpp-2.0/orbitcpp/orb-cpp/orbitcpp_tools.h:69: error:
CORBA_TypeCode_struct*
_orbitcpp::duplicate_guarded(CORBA_TypeCode_struct*)
time-cpp-common.cc: In static member function `static
_orbitcpp::stub::Time*
Time::_dup(CORBA::Object*)':
time-cpp-common.cc:66: error: conversion from `CORBA_Object_type*' to
non-scalar type `Time' requested
time-cpp-common.cc:67: error: no matching function for call to `
duplicate_guarded(Time&)'
/usr/include/orbitcpp-2.0/orbitcpp/orb-cpp/orbitcpp_tools.h:64: error:
candidates
are: CORBA_Object_type* _orbitcpp::duplicate_guarded(CORBA_Object_type*)
/usr/include/orbitcpp-2.0/orbitcpp/orb-cpp/orbitcpp_tools.h:69: error:
CORBA_TypeCode_struct*
_orbitcpp::duplicate_guarded(CORBA_TypeCode_struct*)
time-cpp-common.cc:68: error: no matching function for call to `
_orbitcpp::stub::Time::_orbitcpp_wrap(Time&)'
time-cpp-stubs.h:30: error: candidates are: static _orbitcpp::stub::Time*
_orbitcpp::stub::Time::_orbitcpp_wrap(_orbitcpp::stub::Time, bool =
false)
I'm using Debian SID
$ orbit-idl-2 --version
orbit-idl-2 2.6.2 - serial 19
$ g++ --version
g++ (GCC) 3.3 (Debian)
What am I doing wrong?
Cheers,
Johan
--
--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
"It is better to ask questions and seem stupid,
than not to ask questions and remain stupid." -- Unknown
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]