Hi,
Finally i can write something that can be built (i think). but i have some
issue.
i include api_common.h, api_helper_macro.h and vat_helper_marcors.h but i
can't make it and compiler says:
/***********************************************************/
gcc -Wall -I/usr/include -I/usr/include/vpp_plugins -lvlibmemoryclient
-lsvm -lvppinfra -lvlib -lvatplugin -lpthread -lm -lrt -ldl -lcrypto
vpp_api.o main.o -o test
vpp_api.o: In function `vpp_nat_init':
vpp_api.c:(.text+0x3be): undefined reference to `format'
vpp_api.c:(.text+0x3ce): undefined reference to
`vl_client_get_first_plugin_msg_id'
vpp_api.c:(.text+0x405): undefined reference to `vl_noop_handler'
vpp_api.c:(.text+0x420): undefined reference to `vl_msg_api_set_handlers'
vpp_api.o: In function `vpp_connect':
vpp_api.c:(.text+0x44f): undefined reference to `vl_client_connect_to_vlib'
vpp_api.c:(.text+0x458): undefined reference to `svm_region_exit'
vpp_api.c:(.text+0x466): undefined reference to `api_main'
main.o: In function `api_snat_interface_dump':
main.c:(.text+0x29f): undefined reference to `vl_msg_api_alloc_as_if_client'
main.c:(.text+0x2fb): undefined reference to `vl_msg_api_send_shmem'
main.c:(.text+0x307): undefined reference to `vat_time_now'
main.c:(.text+0x360): undefined reference to `vat_suspend'
main.c:(.text+0x36c): undefined reference to `vat_time_now'
collect2: error: ld returned 1 exit status
makefile:20: recipe for target 'main' failed
make: *** [main] Error 1
/**************************************************/
vpp_api.h <http://dpaste.com/0TVSNCR>
vpp_api.c <http://dpaste.com/0G05C6Q>
main.c <http://dpaste.com/0KA3GRC>
makefile <http://dpaste.com/27JE7HV>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to