当前位置: 技术问答>linux和unix
xilinx 的mb-gcc编译器中printf问题
来源: 互联网 发布时间:2017-02-27
本文导语: 想使用printf函数,但是用xilinx公司自己的mb-gcc(针对microblaze)编译含有printf的函数时报一下错误: write.c:36: undefined reference to 'outbyte'"/"read.c:35: undefined reference to 'inbyte'" ************************* 有个帖子说: This erro...
想使用printf函数,但是用xilinx公司自己的mb-gcc(针对microblaze)编译含有printf的函数时报一下错误:
write.c:36: undefined reference to 'outbyte'"/"read.c:35: undefined reference to 'inbyte'"
*************************
有个帖子说:
This error occurs when the C-code contains "printf-" statements and a peripheral has not been defined as "std_out" and "std_in". To work around this problem, use one of the following solutions:
Remove the "printf-" statement.
or
Define peripheral as Standard-out and Standard-in.
This can be done by using the Software Platform Settings dialog box.
*************************
我理解的就是说(第二种方法)把标准输入输出设置为外设,但是不清楚该怎么做,有高手了解相关东西么?
write.c:36: undefined reference to 'outbyte'"/"read.c:35: undefined reference to 'inbyte'"
*************************
有个帖子说:
This error occurs when the C-code contains "printf-" statements and a peripheral has not been defined as "std_out" and "std_in". To work around this problem, use one of the following solutions:
Remove the "printf-" statement.
or
Define peripheral as Standard-out and Standard-in.
This can be done by using the Software Platform Settings dialog box.
*************************
我理解的就是说(第二种方法)把标准输入输出设置为外设,但是不清楚该怎么做,有高手了解相关东西么?
|
就是menuconfig选项里设置,或者查找平台下的kconfig
|
This can be done by using the Software Platform Settings dialog box
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。