[Click] Building click w/ new elements

Nels Anderson Nels.Anderson at colorado.edu
Fri Oct 15 17:47:54 EDT 2004


Aloha,

I'm currently trying to get click to build with a new element I've written and
I'm having some problems.  I configured click with the --enable-local option
and when I try to build it, I get this as an error message:

g++ -W -Wall -fno-exceptions -fno-rtti  -DHAVE_CONFIG_H -I../include
-I../include -I. -I..  -DCLICK_USERLEVEL -g -O2 -MD -c elements.cc
elements.cc: In function `Element* beetlemonkey(unsigned int)':
elements.cc:327: error: syntax error before `;' token
elements.cc: In function `void click_export_elements()':
elements.cc:664: error: `Print' undeclared (first use this function)
elements.cc:664: error: (Each undeclared identifier is reported only once for
each function it appears in.)
elements.cc:664: error: syntax error before `::' token
elements.cc: In function `void click_unexport_elements()':
elements.cc:928: error: syntax error before `::' token
gmake: *** [elements.o] Error 1

Now, this is after it compiled the element I wrote, so I don't think that could
be the problem.  The weird thing is, all these errors refer to the print
element.  That doesn't really make any sense, as print isn't even a local
element.  However, the problem is related to local elements somehow, as when I
compile click without the --enable-local option, everything works fine.

Anyone have any idea what the problem may be and how it could be resolved? 
Thank you for any assistance,

-Nels


More information about the click mailing list