作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我开始在 Atmel Studio 中收到以下链接器错误:
c:/program files (x86)/atmel/studio/7.0/toolchain/arm/arm-gnu-toolchain/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m\libc.a(lib_a-readr.o):
In function `_read_r':
C:\Users\Administrator\Documents\myproj\Debug\readr.c(1,1): error: undefined reference to `_read'
这发生在我向我的项目添加一个virtual
方法之后。这是怎么回事?
最佳答案
就我而言,这个问题与项目配置的链接器设置有关。
通过将链接器设置“Additional Specs”设置为“Use syscall stubs (--specs=nosys.specs)”,提供了 posix 系统调用(如读取和写入)的空系统调用实现。
这些设置位于
Project Properties -> Toolchain -> ARM/GNU Linker -> General -> Additional Specs
关于c++ - 爱特梅尔工作室 : undefined reference to `_read' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48625878/
我是一名优秀的程序员,十分优秀!