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
  • [vpp-dev] und... ????????
    • Re: [vpp... Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)
      • [vpp... ????????
        • ... Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)
          • ... ????????
            • ... Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)

Reply via email to