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 issue #2

Open
dindinG41TR3 opened this issue Dec 30, 2022 · 0 comments
Open

make issue #2

dindinG41TR3 opened this issue Dec 30, 2022 · 0 comments

Comments

@dindinG41TR3
Copy link

gcc -O3 -Wall -lm -lpcap cdpsnarf.c -o cdpsnarf
/usr/bin/ld: /tmp/ccJQ0Rfd.o: in function tlv_get_number': cdpsnarf.c:(.text+0x1f): undefined reference to pow'
/usr/bin/ld: /tmp/ccJQ0Rfd.o: in function print_cdp_addresses': cdpsnarf.c:(.text+0x197): undefined reference to pow'
/usr/bin/ld: cdpsnarf.c:(.text+0x360): undefined reference to pow' /usr/bin/ld: /tmp/ccJQ0Rfd.o: in function tlv_parse':
cdpsnarf.c:(.text+0x103c): undefined reference to pow' /usr/bin/ld: cdpsnarf.c:(.text+0x122c): undefined reference to pow'
/usr/bin/ld: /tmp/ccJQ0Rfd.o: in function main': cdpsnarf.c:(.text.startup+0x199): undefined reference to pcap_dump_open'
/usr/bin/ld: cdpsnarf.c:(.text.startup+0x20d): undefined reference to pcap_open_live' /usr/bin/ld: cdpsnarf.c:(.text.startup+0x22e): undefined reference to pcap_lookupnet'
/usr/bin/ld: cdpsnarf.c:(.text.startup+0x279): undefined reference to pcap_open_offline' /usr/bin/ld: cdpsnarf.c:(.text.startup+0x33f): undefined reference to pcap_compile'
/usr/bin/ld: cdpsnarf.c:(.text.startup+0x352): undefined reference to pcap_setfilter' /usr/bin/ld: cdpsnarf.c:(.text.startup+0x3a1): undefined reference to pcap_next_ex'
/usr/bin/ld: cdpsnarf.c:(.text.startup+0x3bf): undefined reference to pcap_dump' /usr/bin/ld: cdpsnarf.c:(.text.startup+0x3c7): undefined reference to pcap_dump_flush'
/usr/bin/ld: cdpsnarf.c:(.text.startup+0x521): undefined reference to pcap_geterr' /usr/bin/ld: cdpsnarf.c:(.text.startup+0x54e): undefined reference to pcap_geterr'
/usr/bin/ld: cdpsnarf.c:(.text.startup+0x57b): undefined reference to `pcap_close'
collect2: error: ld returned 1 exit status

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