Ah, no, I see the problem. Your datapath.cc file has an ELEMENT_REQUIRES(OfSwitch). But OfSwitch is not defined anywhere. As a result, Datapath is thrown out. As a result of THAT, EtherSwitch is thrown out.
Eddie On 11/17/11 4:24 PM, Eddie Kohler wrote: > 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 <ekoh...@gmail.com >> <mailto:ekoh...@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@amsterdam.lcs.mit.edu <mailto:click@amsterdam.lcs.mit.edu> >> https://amsterdam.lcs.mit.edu/__mailman/listinfo/click >> <https://amsterdam.lcs.mit.edu/mailman/listinfo/click> >> >> _______________________________________________ click mailing list click@amsterdam.lcs.mit.edu https://amsterdam.lcs.mit.edu/mailman/listinfo/click