Why are you linking against vlib? From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Chinmaya Aggarwal Sent: Thursday, June 25, 2020 6:48 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] VPP C API application compilation issue on using S and W functions
Hi, We are testing VPP C API for our use case. We have a scenario where we want to wait for the reply of our API request. For this, we are trying to use S and W functions defined in src/vlibapi/vat_helper_macros.h. But we get the following error on compiling our source code : - root@ggnlabvm-hnsnfvsdn03:~/vpp_api_test# make gcc -Wall -g -I/usr/include/vpp_plugins -I/usr/include/ -o vpp_api_test vpp_connect.o -Wl,--start-group -lvatplugin -lvppinfra -lvlibmemoryclient -lsvm -lvlib -lvppapiclient -Wl,--end-group -lpthread -lm -lrt -ldl vpp_connect.o: In function `del_sl_pol2_index6': /root/vpp_api_test/vpp_connect.c:780: undefined reference to `vat_time_now' /root/vpp_api_test/vpp_connect.c:780: undefined reference to `vat_suspend' /root/vpp_api_test/vpp_connect.c:780: undefined reference to `vat_time_now' /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libvlib.so: undefined reference to `stat_segment_register_gauge' collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'vpp_api_test' failed make: *** [vpp_api_test] Error 1 Can anyone please suggest what is wrong here? Thanks and Regards, Chinmaya Agarwal.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16815): https://lists.fd.io/g/vpp-dev/message/16815 Mute This Topic: https://lists.fd.io/mt/75100285/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-