Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Borneq on June 11, 2011, 07:51:45 am

Title: [error] navigation on errors open empty files
Post by: Borneq on June 11, 2011, 07:51:45 am
I want to compile projects. Appears errors:"undefined reference to..", this errors on the list have red colour.
When I navigate between errors it open in editor empty files. Try open filename without extension ProgressUtils.h instead Common/ProgressUtils.h
Title: Re: [error] navigation on errors open empty files
Post by: oBFusCATed on June 11, 2011, 10:10:48 am
Read this please: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
You have missing libraries in the linking step or you've forgotten to add to the project the cpp file, containing the definition of the undefined symbol.
Title: Re: [error] navigation on errors open empty files
Post by: Jenna on June 11, 2011, 12:04:54 pm
When I navigate between errors it open in editor empty files. Try open filename without extension ProgressUtils.h instead Common/ProgressUtils.h
If I understand correctly, the file opens, but it seems to be empty.
Try what happens, if the file is already opened in the editor. Does C::B jump to the correct line?
And it only happens for linker errrors and not for compiler errors.

If that's the case, the issue is known. I haven't had the time to investigate deeper, but I try this weekend.
Title: Re: [error] navigation on errors open empty files
Post by: Jenna on June 12, 2011, 09:20:22 pm
Should be fixed in trunk now:
http://forums.codeblocks.org/index.php/topic,14562.msg99520.html#msg99520 (http://forums.codeblocks.org/index.php/topic,14562.msg99520.html#msg99520)