Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't resolve includes after IDE restarts.(I created a CMake project for the eclipse using the hello world template. Indexer was run and everything worked well.)
Can't resolve includes after IDE restarts. [message #1849076] Sun, 02 January 2022 02:16
Eclipse UserFriend
I created a CMake project for the eclipse using the hello world template. Indexer was run and everything worked well.

Synopsis


Everything except ".project" & ".cproject" was deleted
My perfectly functioning project was copied from another location using "src", 'include", 'CMakeLists.txt", and other tools.
Eclipse built the code, indexing was done and everything worked perfectly.
Restarted eclipse
Nothing works. The red squiggly lines under the correct syntax don't build.

Reason

Eclipse creates a sub directory called default inside build and somehow holds that in memory which gives the illusion of working when I run the second build and indexing with my augmented workspace/projectspace

Solution

Add a default directory to the 'build directory

Implement

The following line should be added to the "MakeList.txt" section.
My Eclipse information can be found at help -> About EclipseIDE

Eclipse IDE for C/C++ Developers (includes incubating components)
Version: 2021-03 (4.19.0)
Build ID: 20210312-0638
OS: Linux, v.5.4.0-72-generic, x86_64 / gtk 3.22.30
Java version: 11.0.10
Previous Topic:Using the C++ code formatter from a terminal
Next Topic:Way to un-define symbols for a file while indexing?
Goto Forum:
  


Current Time: Mon Jul 07 23:30:08 EDT 2025

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

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

Back to the top