UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 14448

MicroBlaze - mb-gcc error message: "In function 'write': undefined reference to 'outbyte'"/"In function 'read': undefined reference to 'inbyte'"

描述


General Description:

When I compile C-code, the following error message occurs:



"/xygdrive/d/MicroBlaze//lib/libc.a(write.o): In function `write':

write.o(.text+0x30): undefined reference to `outbyte'

write.o(.text+0x48): undefined reference to `outbyte'

/xygdrive/d/MicroBlaze//lib/libc.a(read.o): In function `read':

read.o(.text+0x38): 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.
AR# 14448
日期 09/02/2011
状态 Archive
Type 综合文章
的页面