Can't resolve includes after IDE restarts. [message #1849076] |
Sun, 02 January 2022 07:16 |
Peter Parker Messages: 2 Registered: January 2022 |
Junior Member |
|
|
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
megapersonal youtube video downloader
Berkeley moving company
|
|
|
Powered by
FUDForum. Page generated in 0.01971 seconds