Function‘__builtin_stwio’ could not be resolved

Function ‘__builtin_stwio’ could not be resolved
If you are using Eclipse IDE for Altera NIOS II C++ firmware development, you will probably be annoyed by the following two reported semantic error messages when you are using IOWR() and IORD() macros from the io.h:
Function ‘__builtin_stwio’ could not be resolved for IOWR() functions in the C++ code.
Function ‘__builtin_ldwio’ could not be resolved for IORD() function in the C++ code.

Anyway, you will still be able to load and run the firmware program in the hardware successfully and everything is working as expected.

These two error messages (builtin stwio could not be resolved and builtin ldwio could not be resolved) are however do not appear if you convert your C++ code to C code.

But you want to write your code in C++. The question is how to remove the two reported semantic error messages above because they are very annoying and they keep distracting you from the actual error messages?

Simple. Go to the Windows in main menu bar. Select Preferences. On the left-hand column, expand C/C++. Select Code Analysis. Scroll down a bit on the right-hand column. Look for the option Function cannot be resolved. Then, it is up to you to change this setting. You can uncheck the option for Function cannot be resolved. Or, you can just change it to Info or Warning from the drop-down list.

Important reminder, after applying the change of the setting, don’t forget to close the Eclipse IDE and reopen it. I noticed that without restarting the Eclipse IDE, the new setting is not effective. After restarting the Eclipse IDE, you will notice that the two semantic error messages above are no longer reported as error.
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值