Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make example error with “ undefined reference to ” ,shared library #538

Open
ThkerLee opened this issue Aug 11, 2020 · 0 comments
Open

Comments

@ThkerLee
Copy link

[root@MiWiFi-R3P-srv hello]# vi ../../example/Makefile
[root@MiWiFi-R3P-srv hello]# cd ../../example/
[root@MiWiFi-R3P-srv example]# make
cc -O -gdwarf-2 -I../lib -o "helloworld" main.c -lfstack -ldpdk -lrt -lm -ldl -lcrypto -pthread -lnuma
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libfstack.so: undefined reference to rte_lcore_is_enabled' /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libfstack.so: undefined reference to rte_lcore_to_socket_id'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libfstack.so: undefined reference to `rte_ether_format_addr'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1
[root@MiWiFi-R3P-srv example]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant