[Click] Click element cyclic dependency

Eddie Kohler ekohler at gmail.com
Thu Nov 17 16:24:01 EST 2011


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 <ekohler at gmail.com
> <mailto:ekohler at gmail.com>> 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
>         click at amsterdam.lcs.mit.edu <mailto:click at amsterdam.lcs.mit.edu>
>         https://amsterdam.lcs.mit.edu/__mailman/listinfo/click
>         <https://amsterdam.lcs.mit.edu/mailman/listinfo/click>
>
>


More information about the click mailing list