I think Mickael's question is a bit different. Yes, it is possible, probably Mickael has just made a mistake by not defining the class variable in the .cc file (and instead only declaring it in the .hh file). Please see elements/standard/pokehandlers.cc for examples of how to define a class variable.
Eddie Beyers Cronje wrote: > I think this will help: > > http://read.cs.ucla.edu/click/faq#how-can-i-make-click-compile-a-c-file-that-doesn-t-contain-an-element > > > On Wed, Mar 11, 2009 at 11:28 PM, Mickael Hoerdt > <[email protected]>wrote: > >> Hello, >> >> I would like to know, it is possible to use class variable with the >> click kernel module ? That is define a variable in a class element and >> access >> it through all the element instance ? >> >> I actually tried it but could not load the click module because there was >> an error related to the symbol of the class variable not being defined. >> >> Thanks a lot, >> >> Hoerdt Mickael >> _______________________________________________ >> click mailing list >> [email protected] >> https://amsterdam.lcs.mit.edu/mailman/listinfo/click >> > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
