我正在使用CDT(用于C语言的eclipse)。我发现默认的gcc编译器选项是-O0 -g3 -Wall -c -fmessage-length=0
。那么-fmessage-length
是什么意思?应该是-fflag
,但是message-length
是什么意思呢?我在GCC命令行选项中没有找到它。感谢您的考虑。
我正在使用CDT(用于C语言的eclipse)。我发现默认的gcc编译器选项是-O0 -g3 -Wall -c -fmessage-length=0
。那么-fmessage-length
是什么意思?应该是-fflag
,但是message-length
是什么意思呢?我在GCC命令行选项中没有找到它。感谢您的考虑。
gcc的man页面说:
-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.
仅仅是一个用于错误信息格式化的选项。