I compile my wxWidgets from git with a custom-makefile project, where the Makefile is in a build-folder, the sources are in a source folder and the projectfile is in a third-folder and jump to errors works fine.
Did you set the execution-directory on the first tab ("Project settings") of the project properties dialog to the folder, where the makefile is located ?
I solved the problem and understood the reason.
problem that CB just takes this "execution directory" and adds it to the file path(name) given by compiler in error/warning. and it can bring errors.
it can be solved easy. you must give sources in full paths to gcc. then gcc will return full path in error/warning, and CB will correctly find file and line.
Your advice will work only if you have one makefile in "execution directory". And you give to gcc all your sources relatively to this directory. Then path = execution directory +"/" + path_from_gcc_message will point correctly to the file.
But my "give source in absolute path" advice seem is universal.
So finally:
if you have custom make file or some custom build system, to preserve an ability to locate error/warning file and line, given by gcc(or supported compiler), you must:
1. or have absolute paths in compiler error/warning message
2. or have relative to "execution directory"(first tab of project settings) paths.