Re: Click element cyclic dependency

Eddie Kohler <[email protected]>
Newsgroups gmane.network.routing.click
Organization Harvard University
Message-ID <[email protected]>
Dear Sandeep,

I think you may need to remove the semicolon after 
"ELEMENT_PROVIDES(Datapath)". Try that?

Eddie


On 11/15/11 6:54 PM, sandeep wrote:
> Respected Professor,
>
> Please have a look at this code. The elements.conf file generated using
> "make elemlist" doesn't have etherswitch.cc file in it. I am not sure
> what the error was. I managed to get the same code working after merging
> datapath.[cc,hh] contents into etherswitch.[cc,hh] but that is probably
> not very object oriented. On another note, I added a write handler to
> etherswitch element(to directly add table entries) which might be useful
> for others as well.
>
> Kind Regards,
> Sandeep,
> PhD Student,
> CTVR <http://ctvr.ie/> - Trinity College Dublin
>
> On Wed, Nov 9, 2011 at 6:01 PM, Eddie Kohler <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Sandeep,
>
>     I am surprised that compilation fails. I tested this type of
>     dependency setup and it worked.  Which version of Click are you
>     using and what error do you see?
>
>     Eddie
>
>
>
>     On 11/2/11 2:47 PM, sandeep wrote:
>
>         I am building an element which uses multiple files. I am in a
>         situation in
>         which I have two files with the following syntax and compilation
>         fails. My
>         idea is to pass reference of the first object to the second one. Any
>         suggestions please.
>
>         File 1:
>         ELEMENT_REQUIRES(Z)
>         ELEMENT_PROVIDES(X)
>         EXPORT_ELEMENT(Y)
>
>         File 2:
>         ELEMENT_REQUIRES(X)
>         ELEMENT_PROVIDES(Z)
>
>         Kind Regards,
>         Sandeep,
>         PhD Student,
>         CTVR<http://ctvr.ie/>  - Trinity College Dublin
>         _________________________________________________
>         click mailing list
>         [email protected] <mailto:[email protected]>
>         https://amsterdam.lcs.mit.edu/__mailman/listinfo/click
>         <https://amsterdam.lcs.mit.edu/mailman/listinfo/click>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.