Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

書中base64範例問題 #8

Open
Mysteriouskk opened this issue Sep 1, 2023 · 0 comments
Open

書中base64範例問題 #8

Mysteriouskk opened this issue Sep 1, 2023 · 0 comments

Comments

@Mysteriouskk
Copy link

我正照著書中的範例做練習,到安裝完mbedtls要做base64示例,在make指令發生錯誤,下面是錯誤代碼

Consolidate compiler generated dependencies of target base64
[ 50%] Linking C executable base64
/usr/bin/ld: CMakeFiles/base64.dir/base64.c.o: in function `main':
base64.c:(.text+0xed): undefined reference to `mbedtls_base64_encode'
/usr/bin/ld: base64.c:(.text+0x137): undefined reference to `mbedtls_base64_decode'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/base64.dir/build.make:97: base64] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/base64.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

想請問我有少安裝到什麼套件嗎,謝謝!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant