Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Fake Errors(Errors are appearing where there are no errors)
Fake Errors [message #1770475] Sat, 12 August 2017 07:31 Go to next message
Daniel Bower is currently offline Daniel BowerFriend
Messages: 3
Registered: December 2016
Junior Member
I set up Eclipse CDT so that I could use the Microsoft Visual C++ toolchain for compiling my programs. However, after eventually figuring out how to get it to work, the IDE shows that there are errors, where there are no errors. This happens in even the simplest of programs and whilst the IDE shows there is an error, the program still builds and runs.

I think this is occurring as the IDE does not seem to be able to resolve any of the include statements.

Also, I'm not sure if this will affect the problem but in order to get the program to build and run I have to launch Eclipse through a batch file.

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
cd C:\Program Files\eclipse - c - cpp

I would appreciate any help in fixing the problem.

[Updated on: Sat, 12 August 2017 08:09]

Report message to a moderator

Re: Fake Errors [message #1770488 is a reply to message #1770475] Sat, 12 August 2017 14:29 Go to previous messageGo to next message
David VavraFriend
Messages: 783
Registered: October 2012
Senior Member
The indexer needs to be told where these files are located.
When using GCC, for example, you enable the compiler builtin discovery
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. on the Providers tab.
This will then show builtins on the Entries tab.

I don't know of any way of getting this with VC.
You can run vcvarsall.bat in a command prompt window
then echo %VCINSTALLDIR%
the includes should be in %VCINSTALLDIR%\Include

You could add this as a User Entry on the Entries tab

I've been using the internal builder and the include directory is in the Managed Build settings.
These are discovered after a build.
I haven't been curious enough to determine what in particular the VC Tool Chain does.


Re: Fake Errors [message #1770506 is a reply to message #1770488] Sun, 13 August 2017 07:11 Go to previous message
Daniel Bower is currently offline Daniel BowerFriend
Messages: 3
Registered: December 2016
Junior Member
Thank you. I will look into setting this up
Previous Topic:GCC Cross compiler configuration - part 2
Next Topic:GCC Cross compiler configuration
Goto Forum:

Current Time: Wed Oct 17 18:56:30 GMT 2018

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

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

Back to the top