Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » unresolved inclusion(includes not found)
unresolved inclusion [message #1814408] Wed, 11 September 2019 02:22 Go to next message
Eclipse UserFriend
I'm running eclipse V 4.12.0 on the latest version of Ubuntu.

I'm trying to get a cmake C/C++ project into Eclipse and generated the project specifics as follows

cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j3 -DCMAKE_ECLIPSE_VERSION=4.12   work/myclemetine


The resulting .cproject file contains all required Symbols and include paths (see attached Paths.png), but I get unresolved inclusion errors (see attached Code.png)

I'm sure it's something trivial I'm missing, but can't work out what.
Thanks
  • Attachment: Paths.png
    (Size: 68.47KB, Downloaded 154 times)
  • Attachment: Code.png
    (Size: 46.19KB, Downloaded 177 times)
Re: unresolved inclusion [message #1814470 is a reply to message #1814408] Wed, 11 September 2019 22:20 Go to previous messageGo to next message
Eclipse UserFriend
Followed instructions from https://www.eclipse.org/forums/index.php/t/1094239/

I think the best option for CMake, at the moment, is to use the cmake4eclipse plugin. The built-in CMake support is currently not at the level of this plugin.

- Create a new empty "C++ project" (not C/C++ project) pointing to your src directory (with the root CMakeLists.txt).
- Go to project Properties -> C/C++ build -> Tool chain editor: select "CMake builder (portable)" as current builder.
- Go to project Properties -> C/C++ general -> Preprocessor Include ... -> Providers: select "CMAKE_COMPILE_COMMANDS_JSON Parser" and "CMAKE_COMPILE_COMMANDS_JSON Compiler Built-Ins".
- Compile your project (check that your includes are properly listed in "Includes" (after the successful build).


Works like a charm
Thanks
Re: unresolved inclusion [message #1814526 is a reply to message #1814470] Thu, 12 September 2019 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi have a lil another troubles. Starting to work with ESP32. installed ESP-IDF, untarred arduino-esp32 for modules, configured as esp32 manuals sad (Gross GCC compiller). but in any case Eclipse won't to see include files.
How to configure project to see another projects' sources?
Re: unresolved inclusion [message #1814527 is a reply to message #1814470] Thu, 12 September 2019 13:12 Go to previous message
Eclipse UserFriend
and another 2 screensots
Previous Topic:(Fixed) Enable g++ compiler warnings
Next Topic:Parse source files without Eclipse plug-in mode
Goto Forum:
  


Current Time: Wed Jul 16 20:55:21 EDT 2025

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

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

Back to the top