[RavenclawDev 168] Re: defining agents in multiple files

Svetlana Stenchikova svetastenchikova at gmail.com
Thu Oct 26 09:58:45 EDT 2006


Thanks Antoine - it makes sense.

Svetlana

On 10/26/06, Antoine Raux <antoine at cs.cmu.edu> wrote:
>
>  Hi Svetlana,
>
>
>
> The way we do this is to create .h files that contain the agents (the
> DEFINE_AGENCY, DEFINE_INFORM_AGENT, etc blocks) and include those in your
> main file. You put all the DELCARE_AGENTS in this single main file.
>
>
>
> hope this helps
>
>
>
> antoine
>
>
>  ------------------------------
>
> *From:* ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu [mailto:
> ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu] *On Behalf Of *Svetlana
> Stenchikova
> *Sent:* Thursday, October 26, 2006 9:13 AM
> *To:* Dan Bohus
> *Cc:* ravenclaw-developers at cs.cmu.edu
> *Subject:* [RavenclawDev 166] defining agents in multiple files
>
>
>
> Hi,
>
> I am trying to organize my dialog manager code by defining agents in
> multiple cpp files.
>
> This means that I would need multiple DECLARE_AGENTS for each of the cpp
> files that defines agents, right?
>
> Having multiple DECLARE_AGENTS does not seem to be legal.
>
> I am getting this error:
> RavenCalendarDM error LNK2005: "public: void __thiscall
> CDTTManagerAgent::CreateDialogTaskAgentome(void)"
> (?CreateDialogTaskAgentome at CDTTManagerAgent@@QAEXXZ) already defined in
> RavenCalendarDialogTask.obj
>
>
> Could you please suggest if there is a way around this? (besides keeping
> all agents in a single cpp file)
>
> thank you
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20061026/d8d24878/attachment-0001.html


More information about the Ravenclaw-developers mailing list