Skip to content

一個用新toolchain的error #2

Description

@CheckHarry

因為這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/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions