[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 16:32:29 CST 2008


Hi Will,

After changing the MPC file and executor implementation do I need to
generate the export header file of the component executor again?

Thank you.

Santos

2008/3/6, William R. Otte <wotte at dre.vanderbilt.edu>:
>
> Hi Santos -
> The only other thing I can think of is that there is something wonky going
> on with the export macros - check the defines that are being passed to the
> compiler on the command line carefully, and perhaps regenerate code from the
> deployment IDL...
>
> hth,
> /-Wi
>
>
> On Mar 6, 2008, at 4:05 PM, santos . wrote:
>
> Thank you  Abdullah and Will for your advice but the errors remain.
>
> I changeg the MPC file so its content became:
>
> MPC File:
> ------------
> project(Manager_Dnc_exec) : ciao_component_dnc, ciao_deployment_stub {
>   avoids += ace_for_tao
>   after   += Manager_Dnc_svnt
>   sharedname = Manager_exec
>   libs += Manager_stub Manager_svnt
>
>   idlflags += -Wb,export_macro=MANAGER_EXEC_Export \
>               -Wb,export_include=Manager_exec_export.h \
>
>   dynamicflags   = MANAGER_EXEC_BUILD_DLL
>   includes +=   ${CIAO_ROOT}/DAnCE/Deployment/ ***This line was needed
> because the compiler couldn't find the "Deployment_ExecutionManagerC.h"
> file without it
>
>   IDL_Files {
>   }
>   Source_Files {
>       Manager_exec.cpp
>   }
>   Header_Files {
>   }
>   Inline_Files {
>   }
> }
>
> I also executed "make clean" and "make realclean" and generated the make
> file again with $ACE_ROOT/bin/mwc.pl -type gnuace.
>
> As this solution didn't worked I also changed the order of the includes in
> my executor file but the same error occurs. I also removed the "#include
> DeploymentC.h" from the header file because, as said by Will, there is
> already a  "#include DeploymentC.h" in the
> "Deployment_ExecutionManagerC.h". The same error occurred after these steps.
> Do you have more ideas?
>
> Thank you very much.
>
> Santos
>
>
> 2008/3/6, William R. Otte <wotte at dre.vanderbilt.edu>:
> >
> > Hi -
> >
> > Thanks for using the PRF!
> >
> >
> > On Mar 6, 2008, at 3:05 PM, santos . wrote:
> > > In the Manager_exec.h:
> > > ---------------------------------
> > > #include "Deployment_ExecutionManagerC.h"
> > > #include "DeploymentC.h"
> > >
> >
> > > 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
> >
> >
> > All of my workspaces are new dance, so I can't answer your question
> > precisely.... but that looks like something wonky is going on with the
> > export decorators.  Might have something to do with including
> > deploymentC.h after Deployment_ExecutionManager, which should include
> > deploymentC.h anyway.
> >
> > Try zapping the deploymentC.h include, or at least reverse the order
> > of your includes.
> >
> > hth,
> > /-Will
> >
> >
> > _______________________________________________
> > ciao-users mailing list
> > ciao-users at mail.cse.wustl.edu
> > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> >
> >
> >
> _______________________________________________
> ciao-users mailing list
> ciao-users at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
>
>
>
> _______________________________________________
> ciao-users mailing list
> ciao-users at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20080306/3eedd90e/attachment.html 


More information about the Ace-users mailing list