Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Why can't I include or compile?(C++)
Why can't I include or compile? [message #1826198] Tue, 21 April 2020 02:23 Go to next message
David Harold is currently offline David HaroldFriend
Messages: 1
Registered: April 2020
Junior Member
I am having issues when trying to create a new C++ project. I recently decided to try virtualbox with Ubuntu on it to avoid using mingw. Everything was working fine when I just downloaded Eclipse and used it with mingw on my Windows machine, but now I downloaded it for Linux and can't get it figured out. For some reason it is working for C but not C++. I believe I have found the issue, but don't exactly know what to do to resolve it. When I go to properties > C/C++ General > Preprocessor Include, you can check a box that allows you to view built-in values. When I go into GNU C, there is a little triangle next to CDT GCC Built-in Compiler Settings that will show me what this contains. When I do the same thing for C++ there is no little triangle, so I am assuming that I have something configured improperly, but can't figure out how to fix it.
I have attached a couple pictures of my issue as well.
  • Attachment: C.PNG
    (Size: 36.16KB, Downloaded 78 times)
  • Attachment: c++.PNG
    (Size: 35.71KB, Downloaded 73 times)
Re: Why can't I include or compile? [message #1826244 is a reply to message #1826198] Tue, 21 April 2020 18:15 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Check that you have installed the C++ toolkit into Ubuntu.

The best guess is to install the build-essential package, if
the tools are missing.

You can check by writing to the console:
which g++
g++ --version

Both should give meaningful responses, if the compiler is OK.


--

Tauno Voipio
Previous Topic:eclipse not working
Next Topic:Serial Terminal
Goto Forum:
  


Current Time: Wed Apr 24 20:34:45 GMT 2024

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

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

Back to the top