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