Andes Workshop
http://forum.andestech.com/

gcc選項"-fmessage-length=0"
http://forum.andestech.com/viewtopic.php?f=6&t=677
Page 1 of 1

Author:  cindy [ Fri Mar 01, 2013 3:47 pm ]
Post subject:  gcc選項"-fmessage-length=0"

Andesight裡預設加了這一行"-fmessage-length=0",以下是gcc網頁上的說明。

-fmessage-length=n
Try to format error messages so that they fit on lines of about n characters. The
default is 72 characters for g++ and 0 for the rest of the front ends supported
by GCC. If n is zero, then no line-wrapping will be done; each error message
will appear on a single line.

GNU build code時,console輸出的一行是不換行的,如果輸出資訊過長時,
會導致無法看到完整的輸出資訊,
加入-fmessage-length=0後,輸出資訊會根據console寬度自動換行。
就能看到完整的資訊囉。

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/