lin
> Sent: Wednesday, March 14, 2018 8:10 AM
> To: vpp-dev@lists.fd.io
> Subject: [vpp-dev] Adding new lib to makefile
>
> Hello All
> in my plugin i'm using libconfig to read/parse configuration file.
> VPP fails when calling to my-plugin-int because this lib is not linked
Add it to sample.am:
sample_plugin_la_LIBADD = [or +=, depending] -lconfig
-Original Message-
From: vpp-dev@lists.fd.io On Behalf Of Sara Gittlin
Sent: Wednesday, March 14, 2018 8:10 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Adding new lib to makefile
Hello All
in my plugin i
Thank you Burt
this is my sample.am - taken from dpdk.am - but stiil get undefined
symbol in runtime
i added the libconfig
vppplugins_LTLIBRARIES += sample_plugin.la
sample_plugin_la_LDFLAGS = $(AM_LDFLAGS) -lsample
#LDLIBS = -lconfig
#LDFLAGS += -lconfig
sample_plugin_la_LDFLAGS += -Wl,-
There are some automake files like dpdk.am and marvell.am and tlsmbedtls.am
that show the non-preferred way to use ..._LDFLAGS to add the library you
will use; you should use ..._LDADD just to conform to (my reading of) the
automake manual https://www.gnu.org/software/automake/manual/automake.pdf.
Hello All
in my plugin i'm using libconfig to read/parse configuration file.
VPP fails when calling to my-plugin-int because this lib is not
linked. [/usr/bin/vpp: symbol lookup error:
/usr/lib/vpp_plugins/sample_plugin.so: undefined symbol: config_init]
which Makefile should i add this new li