[Click] Compiling new elements
Beyers Cronje
bcronje at webmail.co.za
Mon Nov 15 06:58:24 EST 2004
Hi IM,
Not sure if this will help, but have a look at the last Q&A
on http://www.pdos.lcs.mit.edu/click/faq.html
"How can I make Click compile a C++ file that doesn't
contain an element?"
I'm using an external c++ file containing an implementation
of the Boyer-Moore string search algorithm and it compiles
100% using the guidelines of the above Q&A.
Regards
Beyers Cronje
On Sun, 14 Nov 2004 23:24:47 -0800 (PST)
Indian Mogul <indian_mogul at yahoo.com> wrote:
> Hi Eddie,
> I am experiencing some difficulties while
> compiling my new element as a separate package in
> click. I am
> creating my new element called NewElement under
> /click/elemets/newelement. There are four main files
> with the following chracteristics:
> 1. newelement.hh -- contains class NewElement and all
> the click required decl (class_name, processing..etc)
> 2, newelement.cc -- all the member functions are
> defined here (it has the export(..) statement )
> 3. testclass.hh (class TestClass) && testclass.cc
> which are being called from newelement.(cc.hh). Here
> lies my difficluty. Till step (2), when I am not
> calling TestClass, I am able to compile and load my
> element (NewElement) in the config file. But, when I
> want to instantiate an object of TestClass inside
> newelement.cc (by including testclass.hh in
> newlement.hh(and hence in newelement.cc)), it says:
>
> >> newelement.cc:error:`TestClass' undeclared
>
> Could u please throw some light on this?
>
> Thanks,
> IM
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
_____________________________________________________________________
For super low premiums ,click here http://www.dialdirect.co.za/quote
More information about the click
mailing list