[Click] external library

Eddie Kohler kohler at cs.ucla.edu
Thu Jun 22 00:37:57 EDT 2006


Jack,

Did you ever notice that we answered this question eventually?  Try 
ELEMENT_LIBS, as described in the FAQ towards the end:

http://www.read.cs.ucla.edu/click/faq

Eddie


Jack Chan wrote:
> I am trying to build a new package in which I use mysql through mysql++ at
> userlevel. I can compile and install, but when I run a configuration, I got
> undefined symbol error:
> 
> While loading package 'sql':
>   package /home/jack/lib/sql.uo: undefined symbol:
> _ZN7mysqlpp10Connection7connectEPKcS2_S2_S2_jcjS2_j
> 
> I have modified Makefile.in as:
> INCLUDES = -I. -I$(top_builddir) -I$(srcdir) $(CLICKINCLUDES)
> -I/home/jack/include/mysql/ -I/home/jack/include/mysql++/
> LDFLAGS = $(CLICKLDFLAGS)  -L/home/jack/lib -L/home/jack/lib/mysql
> 
> I found a couple of similar requests in mailinglist archive, but couldn't
> figure out the solution that worked. Also looked the Makefile.in of the RON
> package, but not fruitful. Are there general guidelines on using external
> libraries in packages?
> 
> Also, I got undefined symbol errors when using my non-element classes, how
> do I "export" them?
> 
> Thanks,
> Jack
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list