Error line number

View: New views
2 Messages — Rating Filter:   Alert me  

Error line number

by Stefano Mora - EOS S.r.l. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
when i catch an error on the callback function installed by
G__set_errmsgcallback() i usually receive two messages:
- the first one is the error message
- the second one i guess is the line number
If i have an error on a include file then, even if the message reports the
correct include file, the line number (i guess) is referred to the
'composite file' (i.e. C file with included H file). So the line number is
not useful, unless i consider the number of rows of both C and H file.

Is it? If yes, there is a way to have a line number relative to the file
declared on the first message?

Thanks!
--
Ing. Stefano Mora


Re: Error line number

by Axel Naumann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Stefano,

Stefano Mora - Eos S.r.l. wrote:
> If i have an error on a include file then, even if the message reports the
> correct include file, the line number (i guess) is referred to the
> 'composite file' (i.e. C file with included H file).

This should not be the case. Do you have an example pair of .h + .cxx
file that shows this behavior, so I can test + fix it?

Axel.

LightInTheBox - Buy quality products at wholesale price