Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » "Preprocessor Include Paths, Macros, etc" missing
"Preprocessor Include Paths, Macros, etc" missing [message #1833124] Fri, 02 October 2020 21:18 Go to next message
Szabolcs Szekelyi is currently offline Szabolcs SzekelyiFriend
Messages: 5
Registered: May 2017
Location: Canada
Junior Member
Hi,

I'm trying to set up a project with cmake4eclipse. After hours of trying the project finally compiles from Eclipse. But the indexer doesn't run at all and I get errors for almost every line in the code editor. The project properties window is completely missing the "Preprocessor Include Paths, Macros, etc." page in the tree structure on the left. I guess I need to enable the providers by the cmake4eclipse plugin so that the indexer will know where to look for include files. But why don't I see the relevant page in the project properties?

Attached a copy-paste of my configuration from the about window.

Thanks,
--
Szabi
  • Attachment: eclipse.txt
    (Size: 961.80KB, Downloaded 88 times)
Re: "Preprocessor Include Paths, Macros, etc" missing [message #1833129 is a reply to message #1833124] Sat, 03 October 2020 05:26 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Adding the CMake nature to a project removes the Preprocessor Include Paths, Macros, etc. menu item.
This may or may not be a bug.

AFAIK, the only workaround is to import the project as Existing Code as Makefile Project
then run CMake as a external program.

I haven't tried it but you might be able to change the build command to CMake.
(Project --> Properties --> C/C++ Build)
This could allow menu items like Build Project to work.
Re: "Preprocessor Include Paths, Macros, etc" missing [message #1833336 is a reply to message #1833129] Fri, 09 October 2020 11:27 Go to previous message
Mark Smith is currently offline Mark SmithFriend
Messages: 82
Registered: September 2020
Member
Please check this article.
https://www.eclipse.org/community/eclipse_newsletter/2013/october/article4.php
Previous Topic:[Ubuntu] System Header Includes Broken in CDT 2020-09
Next Topic:How to link Static library in Eclipse?
Goto Forum:
  


Current Time: Thu Oct 03 23:38:49 GMT 2024

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

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

Back to the top