Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Multiple "could not be resolved" problems
Multiple "could not be resolved" problems [message #1806970] Mon, 20 May 2019 08:02 Go to next message
Eclipse UserFriend
I have recently installed (the latest builds of) 'Eclipse IDE for C/C++ Developers' and minGW to help me to get back into C++ after a long time away.

I have added "-std=c++11" to "Other flags" at C/C++ Build/Settings/Tool Settings/GCC C++ Compiler/Miscellaneous

I have a small program utilising a number of C++11 features (e.g. using the chrono library, .emplace_back).

After Run I get multiple unresolved issues in the Problems window, as Pasted below).

Interestingly, the program does compile and run ok.

1) With this, is there something I'm not setting up in Eclipse to resolve these issues?

2) While it might not apply to this forum, is there still an issue with the 'to_string()' function e.g. the following extract does not compile:

window.setTitle("Bullets on screen: " + to_string(bullets.size()) + " currentSlice: " + to_string(currentSlice) + " FT: " + to_string(ft) + " FPS: " + to_string(fps));


Thanks.
Re: Multiple "could not be resolved" problems [message #1807166 is a reply to message #1806970] Thu, 23 May 2019 22:26 Go to previous messageGo to next message
Eclipse UserFriend
If it compiles and runs then the messages are probably spurious.
Can't really say without knowing what they are.

If they are appearing in the "Problems view" you can try deleting them
and see if they come back.

Re: Multiple "could not be resolved" problems [message #1807532 is a reply to message #1806970] Sat, 01 June 2019 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Joe Gellen wrote on Mon, 20 May 2019 12:02

After Run I get multiple unresolved issues in the Problems window, as Pasted below).

Interestingly, the program does compile and run ok.


I had the same problem.

For me, rebuilding the index solved it. (right-click on the project folder -> hit "Index" -> hit "Rebuild")

I did also update the index with modified files first. (right-click on the project folder -> hit "Index" -> hit "Update with Modified Files") Though I am not sure whether this was needed.
Re: Multiple "could not be resolved" problems [message #1850496 is a reply to message #1806970] Sat, 05 March 2022 13:10 Go to previous messageGo to next message
Eclipse UserFriend
I have this same issue. My Problems view shows 26 problems but the code compiles fine. The number of problems shown seems to vary.

I am using the ESP-IDF plugin for Eclipse.

The problems mostly seem to center around the inability to resolve symbols from the ESP-IDF library. It acts as if I haven't included the headers, but I have, obviously, since it compiles with 0 warnings or errors.

I have tried many times to clean the project, re-index, "Freshen all files", "Resolve unresolved includes", just about anything in the menu. Nothing seems to fix it.

The really odd thing is that it was working fine for a number of weeks. I updated my ESP-IDF library, and it started happening again. The updated library is in the exact same location as the old one was.

Sadly, I'm unable to use the great features of Eclipse that lets me peak at library structure definitions and such since it thinks they are undefined. Is there a setting somewhere that defines where it looks to resolve symbols for this particular feature?

[Updated on: Sat, 05 March 2022 13:14] by Moderator

Re: Multiple "could not be resolved" problems [message #1858423 is a reply to message #1850496] Sun, 02 April 2023 07:59 Go to previous messageGo to next message
Eclipse UserFriend
I also have the same problem. There are multiple "could not be resolved" errors but deal.II code compiles perfectly. Rebuilding the index does absolutely nothing.This is an old issue but I don't see it resolved several years later.

Any ideas?

[Updated on: Sun, 02 April 2023 08:00] by Moderator

Re: Multiple "could not be resolved" problems [message #1858690 is a reply to message #1806970] Sun, 16 April 2023 16:53 Go to previous messageGo to next message
Eclipse UserFriend
The unresolved issues in the Problems window in Eclipse may be related to the Eclipse indexer not fully recognizing C++11 features or not being updated with the correct configuration. This can happen if the Eclipse project settings or indexer settings are not properly configured for C++11.
Re: Multiple "could not be resolved" problems [message #1858701 is a reply to message #1858690] Mon, 17 April 2023 02:42 Go to previous message
Eclipse UserFriend
Dear Rocky coder,

Thank you for the reply.

How does one properly configure Eclipse project settings or indexer settings for C++11?

Regards,

Gerald.
Previous Topic:Syntax for adding a tool option value in headless build
Next Topic:cmake generation problem
Goto Forum:
  


Current Time: Sun Jul 06 02:29:21 EDT 2025

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

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

Back to the top