|Re: CMake Setup Windows mingw [message #1840973 is a reply to message #1840937]
||Thu, 29 April 2021 15:07
Registered: October 2012
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.
Powered by FUDForum
. Page generated in 0.01813 seconds