Re: Documentation of warning/error output.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't get that column for all errors:

echo -e "#warning Blah\n int main() { printf(); } \n#error Joe\n\n\n\n" | gcc -o a.out -x c -
<stdin>:1:2: warning: #warning Blah
<stdin>: In function 'main':
<stdin>:2: warning: incompatible implicit declaration of built-in function 'printf'
<stdin>:2: error: too few arguments to function 'printf'
<stdin>:3:2: error: #error Joe


dan hitt wrote:
Isn't it
    file: line : column?



On Mon, Mar 23, 2009 at 8:08 PM, Harvey Chapman
<hchapman-gcc-help@xxxxxxxx>  wrote:
Is there any documentation of warning/error output. I couldn't find any
mention of either in the gcc or cpp manuals.

Specifically, I'm looking for documentation of the following along with
perhaps the other lines that get output with warnings. What is the 3rd
field, ":2:"?

<stdin>:1:2: warning: #warning Blah
<stdin>:2:2: error: #error Joe

Thanks,

Harvey


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux