Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » incorrect worck eclipse ide c++
incorrect worck eclipse ide c++ [message #1843043] Tue, 13 July 2021 04:11 Go to next message
sergejj180 sergejj180 is currently offline sergejj180 sergejj180Friend
Messages: 1
Registered: July 2021
Junior Member
Window > Pereferences > C++ > Build > Environment

setting variables for eclipse

MINGW_HOME = ${MSYS_HOME}\mingw64;

MSYS_HOME = FOLDER IN WHICH MSYS2 IS INSTALLED

PATH =
${MSYS_HOME}\usr\bin;
${MSYS_HOME}\usr\include;
${MSYS_HOME}\usr\lib;
${MINGW_HOME}\bin;
${MINGW_HOME}\include;
${MINGW_HOME}\lib;
${MINGW_HOME}\include\c++\10.3.0;
${MINGW_HOME}\x86_64-w64-mingw32\include;
${MINGW_HOME}\x86_64-w64-mingw32\lib;

after that you need to restart eclipse

after that it was found that eclipse ide c ++ compiles the cmake project normally, but at the same time it gives errors that it supposedly cannot find the header files



Re: incorrect worck eclipse ide c++ [message #1843059 is a reply to message #1843043] Tue, 13 July 2021 18:04 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
The editor uses an Indexer to learn definitions found in headers.
The Indexer is independent of the build system.

The Indexer uses various providers (scanners) to discover
where headers can be found. One of the providers gets
the definitions built into GCC.

The Indexer is configured using a dialog that, for whatever reason,
has been excluded from CMake projects. There is no documentation
describing how to accomplish the Indexer configuration or
how to run the equivalent of the built-in provider in a CMake projects.

My advice is to have CMake create a makefile
then use a Makefile project using that makefile.

Re: incorrect worck eclipse ide c++ [message #1843561 is a reply to message #1843059] Fri, 06 August 2021 10:00 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
I've discovered a setting in Window --> Preferences --> C/C++ --> CMake --> Indexer Support
labelled Show output of compiler built-in detection in the build console
Turn this on.

It seems to wait until the next build.
Afterward, I had to rebuild the index Project --> C/C++ Index --> Rebuild

It my be necessary to run the CMake GUI again Project-->Properties-->CMake
rerunning Configure and Generate

It isn't clear if it's necessary to enable the showing of the built-in detection
but it will definitely show when it is run.

Previous Topic:breakpoints not working from IDE
Next Topic:Why do certain dot files keep disappearing?
Goto Forum:
  


Current Time: Thu Apr 25 13:55:19 GMT 2024

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

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

Back to the top