[Ace-users] [ciao-users] Problem trying to include "Deployment_ExecutionManagerC.h" and DeploymentC.h” in an component executor header file
santos .
sanntosn at gmail.com
Thu Mar 6 15:05:19 CST 2008
CIAO VERSION: 0.5.9
TAO VERSION : 1.5.9
ACE VERSION : 5.5.9
HOST MACHINE and OPERATING SYSTEM:
If on Windows based OS's, which version of WINSOCK do you
use?: Pentium IV, Debian linux kernel 2.6
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:#include "ace/config-
linux.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one
(unless this isn't used in this case, e.g., with Microsoft Visual
C++)]:
no_hidden_visibility=1
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
default.features
(used by MPC when you generate your own makefiles): There is no
such file.
AREA/CLASS/EXAMPLE AFFECTED:
[What example failed? What module failed to compile?]
DOES THE PROBLEM AFFECT:
COMPILATION? Yes.
If so, what do your $ACE_ROOT/ace/config.h and
$ACE_ROOT/include/makeinclude/platform_macros.GNU contain?
LINKING?
On Unix systems, did you run make realclean first?
EXECUTION? No.
OTHER (please specify)?
[Please indicate whether ACE/TAO/CIAO, your application, or both are
affected.]
Deployment descriptor for external component connection
SYNOPSIS: Problem trying to include "Deployment_ExecutionManagerC.h" and
DeploymentC.h" in an component executor header file
[Brief description of the problem]
Deployment descriptor for external component connection
DESCRIPTION:
[Detailed description of problem. Don't just say "<blah>
doesn't work, here's a fix," explain what your program does
to get to the <blah> state. ]
Hi,
I need to inspect a Deployment Plan in my component executor so I'm trying
to include the "Deployment_ExecutionManagerC.h" and "DeploymentC.h" in the
executor's header file in order to obtain the Executor Manager from an IOR
file and to get the deployment plan and print its information like that:
In the Manager_exec.h:
---------------------------------
#include "Deployment_ExecutionManagerC.h"
#include "DeploymentC.h"
In the Manager_exec.cpp:
---------------------------------
CORBA::Object_var obj = this->component_.orb()->string_to_object (iorem);
execution_manager = ::Deployment::ExecutionManager::_narrow (obj.in ());
::Deployment::DeploymentPlan_var deployment_plan =
execution_manager->getPlan(plan_name);
::Deployment::InstanceDeploymentDescriptions instance =
deployment_plan->instance;
In the MPC file I added the CIAO_Deployment_stub library in the libs section
and the CIAO_ROOT}/DAnCE/Deployment/ path to the includes section, but I'm
receiving an error regarding Deployment_BaseC.h. Below I pasted the first
error lines (there are a lot more).
MPC File:
------------
project(Manager_Dnc_exec) : ciao_component_dnc {
avoids += ace_for_tao
after += Manager_Dnc_svnt
sharedname = Manager_exec
libs += Manager_stub Manager_svnt \
CIAO_Deployment_stub
idlflags += -Wb,export_macro=MANAGER_EXEC_Export \
-Wb,export_include=Manager_exec_export.h \
dynamicflags = MANAGER_EXEC_BUILD_DLL
includes += ${CIAO_ROOT}/DAnCE/Deployment/
IDL_Files {
}
Source_Files {
Manager_exec.cpp
}
Header_Files {
}
Inline_Files {
}
}
Compilation Errors:
-------------------------
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:88:
error: invalid function declaration
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:101:
error: 'struct Deployment::Deployment_stub_Export::CORBA' has not been
declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:101:
error: expected initializer before 'const'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:123:
error: invalid function declaration
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:154:
error: 'struct Deployment::Deployment_stub_Export::CORBA' has not been
declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:154:
error: expected initializer before 'const'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:176:
error: invalid function declaration
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:190:
error: 'struct Deployment::Deployment_stub_Export::CORBA' has not been
declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:190:
error: expected initializer before 'const'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:212:
error: invalid function declaration
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:243:
error: 'struct Deployment::Deployment_stub_Export::CORBA' has not been
declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:243:
error: expected initializer before 'const'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:263:
error: 'struct Deployment::Deployment_stub_Export::CORBA' has not been
declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:263:
error: expected initializer before 'const'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:285:
error: invalid function declaration
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:300:
error: 'struct Deployment::Deployment_stub_Export::CORBA' has not been
declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:300:
error: expected initializer before 'const'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:322:
error: invalid function declaration
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:353:
error: 'struct Deployment::Deployment_stub_Export::CORBA' has not been
declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:353:
error: expected initializer before 'const'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:379:
error: expected constructor, destructor, or type conversion before 'void'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:380:
error: expected constructor, destructor, or type conversion before 'void'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:381:
error: 'Deployment_stub_Export' has not been declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:381:
error: expected constructor, destructor, or type conversion before
'operator'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:382:
error: 'Deployment_stub_Export' has not been declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:382:
error: expected constructor, destructor, or type conversion before
'operator'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:393:
error: expected constructor, destructor, or type conversion before 'void'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:394:
error: expected constructor, destructor, or type conversion before 'void'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:395:
error: 'Deployment_stub_Export' has not been declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:395:
error: expected constructor, destructor, or type conversion before
'operator'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:396:
error: 'Deployment_stub_Export' has not been declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:396:
error: expected constructor, destructor, or type conversion before
'operator'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:407:
error: expected constructor, destructor, or type conversion before 'void'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:408:
error: expected constructor, destructor, or type conversion before 'void'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:409:
error: 'Deployment_stub_Export' has not been declared
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:409:
error: expected constructor, destructor, or type conversion before
'operator'
/usr/local/ACE_wrappers/TAO/CIAO/DAnCE/Deployment/Deployment_BaseC.h:410:
error: 'Deployment_stub_Export' has not been declared
I will appreciate If you can help me to figure out what I'm doing wrong.
Thank you.
Santos
REPEAT BY:
[What you did to get the error; include test program or session
transcript if at all possible. ]
SAMPLE FIX/WORKAROUND:
[If available ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20080306/00b40f42/attachment.html
More information about the Ace-users
mailing list