Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse C++ symbols could not be resolved(Eclipse showing valid symbols as not resolved)
Eclipse C++ symbols could not be resolved [message #1833729] Thu, 22 October 2020 17:03 Go to next message
Mike Litoris is currently offline Mike LitorisFriend
Messages: 2
Registered: October 2020
Junior Member
Hello,

I'm using a third party template library called "entt".

For certain methods of that library, Eclipse shows errors for perfectly fine code, see attachment.

The code compiles without errors and warnings perfectly well. I'm using MinGw as toolchain, am I missing a certain setting?



Re: Eclipse C++ symbols could not be resolved [message #1833745 is a reply to message #1833729] Fri, 23 October 2020 07:49 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Rather hard to say since you didn't really tell us what you did.

This is a question often asked.
You need to understand that Eclipse is separate from the toolchain.
The toolchain is provided by a third party and is external to Eclipse.

Eclipse uses the toolchain only during the build (with one exception).
It normally does this through the Makefile assuming you are using Make.
If Eclipse is creating the Makefile,
then you tell Eclipse to tell the compiler where the includes can be found.

You seem to have done this because the code compiles without errors.

If you want Eclipse to check your syntax and function calls then you need to inform the Indexer about your includes.

There are many ways to do this.
Suggest reading: https://www.eclipse.org/community/eclipse_newsletter/2013/october/article4.php
Re: Eclipse C++ symbols could not be resolved [message #1833773 is a reply to message #1833745] Fri, 23 October 2020 15:48 Go to previous messageGo to next message
Mike Litoris is currently offline Mike LitorisFriend
Messages: 2
Registered: October 2020
Junior Member
Thank you for your response.

Include paths are correctly set up. I can even use the structures and methods defined int the .hpp.

It seems for complex operations where methods are nested in combination with the "auto" keywoard, Eclipse just can't resolve that and tells me that are unknown symbols.
Re: Eclipse C++ symbols could not be resolved [message #1833798 is a reply to message #1833773] Sat, 24 October 2020 01:30 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Could be.
All of the flagged errors after auto group appear secondary.
So you only need to find out why it's flagged.
I don't have any way to reproduce this.
Suggest filing a bug report.
Previous Topic:meson build
Next Topic:CDT Package
Goto Forum:
  


Current Time: Wed Oct 16 02:32:55 GMT 2024

Powered by FUDForum. Page generated in 0.06066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top