Z-Pocket Game Pro(ZPG Pro)

解決"undefined reference to des_key_sched"問題


參考資訊:
1. crypt issue

問題如下:

/usr/bin/ld: b_crypt.o: in function `crypt_create':
b_crypt.c:(.text+0x48): undefined reference to `des_key_sched'
/usr/bin/ld: b_crypt.c:(.text+0x58): undefined reference to `des_key_sched'
/usr/bin/ld: b_crypt.c:(.text+0x68): undefined reference to `des_key_sched'
/usr/bin/ld: b_crypt.c:(.text+0x98): undefined reference to `des_key_sched'
/usr/bin/ld: b_crypt.o: in function `crypt_data':
b_crypt.c:(.text+0x190): undefined reference to `des_ecb_encrypt'
/usr/bin/ld: b_crypt.c:(.text+0x1a4): undefined reference to `des_ecb_encrypt'
/usr/bin/ld: b_crypt.c:(.text+0x1b8): undefined reference to `des_ecb_encrypt'
/usr/bin/ld: b_crypt.c:(.text+0x21c): undefined reference to `des_ecb_encrypt'
/usr/bin/ld: b_crypt.c:(.text+0x230): undefined reference to `des_ecb_encrypt'
/usr/bin/ld: b_crypt.o:b_crypt.c:(.text+0x244): more undefined references to `des_ecb_encrypt' follow

解法

LIBS = -lcrypt


返回上一頁