0
我試圖編譯一個簡單的僵屍網絡我做了,用命令gcc -static -lpthread client.c
但每次我這樣做時,它拋出這些錯誤:GCC嚇壞了,當我用-static
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lc
它編譯罰款,只要我編譯沒有-static
,但我無法弄清楚。你可以找到代碼here。爲了記錄這個簡單的僵屍網絡是基於bashlite,但沒有實際的DDoS功能,並且不能造成任何實際的傷害。任何幫助,將不勝感激。
你已經安裝了這些庫的靜態版本? –
@PaulGriffiths我想我會......如何安裝pthread的靜態鏈接,以及它試圖與'-lc'鏈接的庫是什麼? – LifeInKernelSpace
libc是C標準庫。 –