Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 108717

Summary: [Error Parser] link errors appear strangely in Problems view
Product: [Tools] CDT Reporter: Tom Tromey <tromey>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: jjohnstn, overholt
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Tom Tromey CLA 2005-09-02 14:24:13 EDT
I noticed recently that link errors show up strangely in the Problems view.

On Linux an easy way to see this is to make a managed build project
with a single source file that uses '#include <zlib.h>' and, in main(),
calls 'zError(5)' -- but do not link with -lz.

In the Problems view I see two errors related to this project.
First, and correctly, there is:  undefined reference to `zError'.
Clicking on this takes me to the correct line in main.cc.

Second, and incorrectly, there is an error whose text reads:
  *g++ -odemo ./main.o ./new.o In function `main':
Clicking on this attempts to open main.o.
Comment 1 Chris Recoskie CLA 2009-05-12 12:17:10 EDT
Reassigning to core.
Comment 2 Andrew Gvozdev CLA 2010-02-02 21:25:55 EST
If this problem still happens please provide example of console output related to the error. This might've been fixed for the last 5 years.
Comment 3 Jeff Johnston CLA 2010-02-03 17:25:19 EST
(In reply to comment #2)
> If this problem still happens please provide example of console output related
> to the error. This might've been fixed for the last 5 years.

I tried out the example and it correctly reported the error of the undefined reference plus the make failure, but no extraneous problem as described.