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

一个编译连接错误 #9

Open
iscc7 opened this issue Nov 30, 2021 · 1 comment
Open

一个编译连接错误 #9

iscc7 opened this issue Nov 30, 2021 · 1 comment

Comments

@iscc7
Copy link

iscc7 commented Nov 30, 2021

氦~我在第四章第三节,也就是code目录下编译kernel抛出了一个错误
printk.c:(.text+0x7d8): undefined reference to `strlen'
我的ubuntu版本是Ubuntu 20.04.3 LTS
gcc 的版本是 9.3.0
目前还不清楚是问题的原因

@iscc7
Copy link
Author

iscc7 commented Dec 1, 2021

解决了,在内联函数的部分将其声明称static。

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