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

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 43
[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: 11715
    • 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 jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
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.