[Click] element_provides and element_requires

Eddie Kohler kohler at cs.ucla.edu
Wed Jul 11 15:27:17 EDT 2007


A frequent reason for this type of problem is that you have some #ifndef 
protection in trains_CDM.hh, like

#ifndef TRAINS_CDM_HH
#define TRAINS_CDM_HH
...
#endif

and included THE SAME protection in trains_tcb.hh.  In which case 
trains_tcb.hh will get included, but ignored (because TRAINS_CDM_HH is already 
defined).  I'd check for something like that.

Eddie


Nele Gheysens wrote:
> Hi,
> 
> Thank you for your advice, this would indeed be the most logical 
> solution. But I included trains_tcb.hh in trains_CDM.hh. And 
> trains_CDM.hh is included in trains_CDM.cc, so I really don't understand 
> why the compiler is ignoring this file.
> 
> Greetings,
> Nele
> 
> 
> 
> click-request at pdos.csail.mit.edu wrote:
> 
> Date: Fri, 06 Jul 2007 08:22:52 -0700
> From: Eddie Kohler <kohler at cs.ucla.edu>
> Subject: Re: [Click] element_provides and element_requires
> To: Bart Braem <bart.braem at ua.ac.be>
> Cc: click at pdos.csail.mit.edu
> Message-ID: <468E5E4C.2070806 at cs.ucla.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> I agree with Bart, Nele; it sounds like you have not put
> #include "trains_tcb.hh"
> in the top of trains_CDM.cc.
> 
> Eddie
> 


More information about the click mailing list