Andes Workshop

It is currently Thu Sep 19, 2019 6:13 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: gcc選項"-fmessage-length=0"
PostPosted: Fri Mar 01, 2013 3:47 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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寬度自動換行。
就能看到完整的資訊囉。


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group