掌機 - Z-Pocket Game Pro (ZPG Pro) - 解決Undefined reference to des_key_sched問題



參考資訊:
http://forums.codeblocks.org/index.php?topic=23601.0

問題如下:

/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