Documentation of warning/error output.

Harvey Chapman hchapman-gcc-help@3gfp.com
Tue Mar 24 03:15:00 GMT 2009


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@3gfp.com>  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
>>



More information about the Gcc-help mailing list