Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CMake Setup Windows mingw(How to setup eclipse for cmake )
CMake Setup Windows mingw [message #1840937] Thu, 29 April 2021 08:50 Go to next message
Keyara Edwards is currently offline Keyara EdwardsFriend
Messages: 7
Registered: May 2020
Junior Member
I've been trying to set up new projects to run cmake. I want to build a project in cmake. I have already installed cmake the software and mingw on a windows 10 computer. I've tried to create the project then turn it into a cmake project by adding a different debug and release configuration. I have also tried importing an existing code by creating a cmake file with simple commands. The error I get is: symbol cout could not be resolved and that none of the C++ standard library is included. Any suggestions, tips, or help are welcome. System Path has already been made.
Re: CMake Setup Windows mingw [message #1840973 is a reply to message #1840937] Thu, 29 April 2021 15:07 Go to previous message
David VavraFriend
Messages: 1430
Registered: October 2012
Senior Member
Quote:
The error I get is: symbol cout could not be resolved and that none of the C++ standard library is included.

This is actually an Indexer issue. It has nothing to do with CMake per se.
The GNU Make build projects have a dialog entitled Preprocessor Include Paths, Macros, etc.
This dialog controls where the Indexer gets its information.
One of the places is from the compiler itself (Builtins).
This only works for some compilers (gcc and clang).

In a CMake project this dialog is missing but apparently the providers still exist.
There's a list of providers in Window --> Preferences --> C/C++ --> Build --> Settings --> Discovery tab

What's not clear is which ones will be used and when.
I made a CMake project that eventually obtained the compiler builtins.
The entire CMake Project concept is somewhat different than for projects using Make and is poorly documented .
The only way to find out how it works seems to be experimentation and reading the CDT source.

Unless you are really ambitious and intent on using Eclipse CMake projects,
I suggest using the normal (I.e. Makefile projects) by allowing CMake to generate a Makefile
then build using that Makefile and run CMake externally as needed
or change the build command (Project --> C/C++ Build --> Build Command) to be cmake.
Previous Topic:Why are C++ trigonometric functions fast, but not that fast ?
Next Topic:Please delete this post. I don't know why is twice
Goto Forum:
  


Current Time: Wed Aug 10 20:54:11 GMT 2022

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

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

Back to the top