Author Topic: [error] navigation on errors open empty files  (Read 7393 times)

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
[error] navigation on errors open empty files
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [error] navigation on errors open empty files
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: [error] navigation on errors open empty files
« Reply #2 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255