Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Freem on April 12, 2012, 03:39:27 pm

Title: remove file path in errors/warning
Post by: Freem on April 12, 2012, 03:39:27 pm
I do not think there is such feature, but I am asking myself if there is a way to parse build messages to remove "useless" path.
By example, files the project own could replace the "/home/devel/foo_prj/include/" with simple "include/".
I know and understand that it should need to be done for each compiler separately, because it is something about the parsing of their output, but I would like to know how such kind of thing could be done?
Title: Re: remove file path in errors/warning
Post by: Jenna on April 12, 2012, 04:46:37 pm
This might work, if you uncheck "Settings -> Compiler... -> [your_compiler] -> Other Settings -> Advanced options... -> Others -> Use full paths for sources files (GDB workaround)".
In some rare cases it might break debugging, but in most cases it works without this option as far as I know.
Title: Re: remove file path in errors/warning
Post by: Freem on April 12, 2012, 04:55:10 pm
Thanks a lot. It will probably help me a lot :)