我試着用gcc它給了我GCC編譯錯誤未定義的參考`aes256_init」
$ gcc demo.c -o samp.o
/tmp/cclnweNC.o: In function `main':
demo.c:(.text+0x12b): undefined reference to `aes256_init'
demo.c:(.text+0x142): undefined reference to `aes256_encrypt_ecb'
demo.c:(.text+0x1b2): undefined reference to `aes256_init'
demo.c:(.text+0x1c9): undefined reference to `aes256_decrypt_ecb'
demo.c:(.text+0x222): undefined reference to `aes256_done'
collect2: ld returned 1 exit status
我曾文件調用aes256.h在這個我已經初始化所有的編譯功能,這些功能的主體在aes256.c並試圖編譯我的主文件demo.c它顯示上述錯誤
@herohuyongtao這是無關緊要的,這是一個鏈接問題,而不是編譯錯誤。 – Zaffy