[Click] how to compile non-element .cc files?

Eddie Kohler kohler at cs.ucla.edu
Mon Nov 3 14:55:20 EST 2008


You are doing the right thing.  Every C++ file that should be compiled in to a 
Click package binary should have at least one of ELEMENT_PROVIDES and 
EXPORT_ELEMENT.  If the C++ file doesn't define an element, use ELEMENT_PROVIDES.

Eddie


Marco Canini wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I found myself (mis)using the ELEMENT_PROVIDES(something) define in
> order to be able to compile .cc files which are not elements.
> For example, I have a class with pure virtual functions, and so it
> cannot be declared as an element.
> Now I wonder if there is another way to have the build process aware
> that it should compile these .cc files.
> Last thing, I'm working inside a click package.
> Please share your wisdom :-)
> cheers
> 
> - --
> Marco Canini
> Ph.D. Candidate
> Department of Communication, Computer and System Sciences
> University of Genoa
> Via all'Opera Pia 13
> 16145 Genoa Italy
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
> 
> iD8DBQFJDua4K52QDm/mFCkRArNtAKDiGJemRLHPPyzK92U5+CZR/K/IjQCeNIZi
> V+9NRx0Mdq9G+1mc93EOtmw=
> =mp2i
> -----END PGP SIGNATURE-----
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list