Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Indexer showing undefined symbols when symbol is defined in more than 1 place

I have filed bug 417193

 

I have spent a lot of time looking at this and it seems to be related to a #pragma once statement.

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sergey Prigogin
Sent: Friday, July 26, 2013 1:55 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Indexer showing undefined symbols when symbol is defined in more than 1 place

 

Please file a bug and include an example project that demonstrates the problem.

 

-sergey

 

On Fri, Jul 26, 2013 at 6:45 AM, Joseph Henry <Joseph.Henry@xxxxxxx> wrote:

Hi all,

 

Me and my team have recently ran into a bug in the eclipse CDT.

 

We are using eclipse 4.2.2 and CDT 8.1.2 on Windows with a custom toolchain.

 

We find that when we get multiple source files in a project, sometimes we run into a situation where the indexer tells us that a symbol is undefined, but when you right click and do “go to definition” you get a little popup that you can choose which definition to go to. This means that the definition is in 2 places, and that is being flagged as an error.

 

The thing is, is that the source file that is being flagged only has one path (in the includes) to the definition. It seems like the indexer is getting confused by another source file in the project.

 

I found this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=353719. This seems to be related, but this specifically mentions the cross gcc toolchain, which I am certain that it has nothing to do with the toolchain used, and just about the indexer.

 

Does anyone know if this bug has been fixed? Or if there are any plans on it being fixed? Or if there is a workaround for it?

 

Thanks,

Joseph Henry.


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

 


Back to the top