我试着用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