Skip to main content



      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 13:03 Go to next message
Eclipse UserFriend
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 03:49 Go to previous messageGo to next message
Eclipse UserFriend
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 11:48 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 23 October 2020 21:30 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 12:08:41 EDT 2025

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

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

Back to the top