Error occurs when recompile the UDP tool with GCC in debian

Programming related discussions related to game research
jammer
Posts: 1
Joined: Sun Dec 11, 2022 4:07 pm

Error occurs when recompile the UDP tool with GCC in debian

Post by jammer »

so simply im trying to compile udpsz tool in debian i386 with this command:

Code: Select all

gcc -o udpsz udpsz.c md5.c -lz -ldl -lpthread -lpcap
i get this:

Code: Select all

/usr/bin/ld: /tmp/cc1pxSuk.o: in function `.L159':
udpsz.c:(.text+0x58e6): undefined reference to `endless_recvshow'
/usr/bin/ld: udpsz.c:(.text+0x5d53): undefined reference to `endless_recvshow'
/usr/bin/ld: udpsz.c:(.text+0x5eda): undefined reference to `endless_recvshow'
collect2: error: ld returned 1 exit status
any ideas?