[RavenclawDev 167] Re: defining agents in multiple files

Antoine Raux antoine at cs.cmu.edu
Thu Oct 26 09:22:37 EDT 2006


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/8b2fd9ce/attachment.html


More information about the Ravenclaw-developers mailing list