Hi,
link libraries are same with test/ext/Makefile binaries. any other libraries
needed?
------------------ ???????? ------------------
??????: "Klement Sekera -X (ksekera - PA";<ksek...@cisco.com>;
????????: 2017??10??3??(??????) ????4:30
??????: "????????"<15803846...@qq.com>;"vpp-dev"<vpp-dev@lists.fd.io>;
????: Re: undefined reference to `vapi_register_msg'
Hi,
link against the same libraries as test/ext/Makefile binaries do:
-lvppinfra -lvlibmemoryclient -lsvm -lvapiclient
Regards,
Klement
Quoting ???????? (2017-10-03 10:17:24)
> HI, i make the vapi test program, and make output the flowing errors.
> Maybe, any *.so should i add?
> vpp@vpp-VirtualBox:~/test$ make
> cc -std=gnu99 -g -Wall -pthread -I/home/vpp/vpp/src
> -Ihome//vpp/vpp/build-root/install-vpp-native/vpp/include -I/home/test
> test.c -o test
> /tmp/ccq6LqEu.o: In function `__vapi_constructor_delete_subif_reply':
> /usr/include/vapi/vpe.api.vapi.h:6548: undefined reference to
> `vapi_register_msg'
> /tmp/ccq6LqEu.o: In function `__vapi_constructor_ip6_nd_event':
> /usr/include/vapi/vpe.api.vapi.h:6570: undefined reference to
> `vapi_register_msg'
> /tmp/ccq6LqEu.o: In function
> `__vapi_constructor_pg_create_interface_reply':
> /usr/include/vapi/vpe.api.vapi.h:6592: undefined reference to
> `vapi_register_msg'
> /tmp/ccq6LqEu.o: In function `__vapi_constructor_pg_capture_reply':
> /usr/include/vapi/vpe.api.vapi.h:6614: undefined reference to
> `vapi_register_msg'
> /tmp/ccq6LqEu.o: In function
> `__vapi_constructor_sw_interface_set_vpath_reply':
> /usr/include/vapi/vpe.api.vapi.h:6636: undefined reference to
> `vapi_register_msg'
> /tmp/ccq6LqEu.o:/usr/include/vapi/vpe.api.vapi.h:6658: more undefined
> references to `vapi_register_msg' follow
> /tmp/ccq6LqEu.o: In function `test_connect':
> /home/vpp/test/test.c:46: undefined reference to `vapi_ctx_alloc'
> /home/vpp/test/test.c:48: undefined reference to `vapi_connect'
> /home/vpp/test/test.c:51: undefined reference to `vapi_disconnect'
> /home/vpp/test/test.c:53: undefined reference to `vapi_ctx_free'
> collect2: error: ld returned 1 exit status
> <builtin>: recipe for target 'test' failed
> make: *** [test] Error 1
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev