-
Notifications
You must be signed in to change notification settings - Fork 190
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
一個用新toolchain的error #2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因為這repo應該是最容易搜到的6.828repo.
所以在這裡填一個坑.
使用新的 toolchain 有可能在lab5之後遇上multiple definition 的error. 這是由於 gcc 把 default 的 -fcommon 改成了 -fno-common.
解決方法:在 makefile 中的 CFLAGS 加上 -fcommon
詳見:https://www.linuxquestions.org/questions/programming-9/multiple-definition-errors-when-linking-on-arch-using-gcc-10-1-0-a-4175675444/
The text was updated successfully, but these errors were encountered: