Eclipse doesn't show any C++ project selection after I install CDT - c++

I have had a problem, I installed CDT in eclipse, the installation was successful. However, when I tried a project in C++, there is no selection for C++ Project in Menu File -> New. I have tried to find it everywhere but It doesn't show up. I also reinstalled it several times, It still didn't work.
My Eclipse is JUNO
here is the link I add to "Install new software" in help : http://download.eclipse.org/tools/cdt/releases/juno

Go to File -> New -> Other and find C/C++ projects. Unless you have the C/C++ Perspective view on I don't think C++ projects are offered at the first level under new. Once you actually, start a C++ project, Eclipse will ask if you want to switch to the CDT persepective.

Related

Eclipse CDT missing features

We have a C++ project we want to enhance using Eclipse on Linux (CentOS 7). We have one Linux VM with Eclipse and CDT (a C++ plug-in) installed. Using CMake, we generated make files for the project and brought it up in Eclipse (File → Import → General → Existing Projects into Workspace). From there we need to do some fixes to make it compile C++ 11 code. We do this via the "Properties → C/C++ General → Preprocessor Include Paths, Macros etc." page. It all builds and works fine.
We created new Linux VMs with the same version of Linux. We installed Eclipse (Oxygen) and installed the CDT plug-in. We followed all the same steps as above, except in these new VMs, there is no "C/C++ General → Preprocessor Include Paths, Macros etc." option in the Properties dialog. We can get the code to compile as C++ 11, but the IDE itself doesn't recognize C++ 11 and marks most of the code as errors. If we had the "Preprocessor Include Paths, Macros etc." page, we could makes the necessary changes, but for the life of us, we can't figure out why it doesn't show up in the new VMs. Both Eclipse installs have the same plug-ins (one, namely, CDT).
Is there something we're missing? Is there another way to access the options that the missing page allows?
UPDATE
Perhaps some visual will help. Here is what the Properties page looks like when opened on the original Linux VM:
Here is what the Properties page looks like when opened in the new VMs:
As you can see, in the second image, there is no "Preprocessor Include Paths, Macros, etc." option underneath "C/C++ General". That is the problem. Without that page, we can't do several things to the project we need to to get it to operate correctly.
I can't really be proud of our solution to this problem. The version of Eclipse that works is Oxygen.1a Release (4.7.1a). The "latest and greatest" release of Eclipse (at the time) was Oxygen.2 Release (4.7.2). We downloaded and installed 4.7.1a and it worked. There must be a defect in 4.7.2 that prevents it from correctly recognizing C++ 11 code.
Oxygen.1a 4.7.1a imports the project perfectly and shows up all the options we need to make changes and get the application to compile and run correctly.

How do I set up C/C++ on Eclipse in Windows?

I just did the default Java (8) installation of Eclipse on my Windows (8, yikes) laptop, and it seems to work just fine. However, I'm not as good at Java as I am with C and C++, and for some work it's more expeditious to use C/C++ than Java.
Unfortunately, the Eclipse installer for Windows doesn't make it very easy to set up Eclipse for C/C++. It looks like I'd be fine with Linux or BSD, but then I'd have to scrounge up another laptop (because I need the mobility) and install Linux or BSD on it. Yes, I need to leave Windows on this machine, so Windows hate isn't going to help me.
My lazy web search turned up this article: "Install Eclipse for C++ Development on Windows 7 64-bit". Is there a better installation guide than that, or does anyone care to describe the process in more detail?
Even though you have CDT features installed, you need to install a GCC compiler for windows such as MinGW or Cygwin. Once you install them, add the 'bin' folder in the installed path to the environment variables and then restart eclipse. You should now see MinGW compiler when you select "Create new C Project". After this step, proceed with your C programs and this should resolve your problems.
You will have to install a GCC compiler in your PC and then link it to the project each time you create a project. This can be done while you create a new project, or even after you have done so. You can download MinGW compiler through the following link
https://sourceforge.net/projects/mingw/files/latest/download?source=files
Once you have downloaded the compiler and installed it, it can be linked through the following steps:
i. While creating a new project, choose MinGW GCC compiler in the tool chains.
ii. Once you have finished creating a project, go to Project->Properties.
iii. Look for Run/Debug Settings in the left panel.
iv. Click on the New tab and select C/C++ Application.
v. Look for Environment option.
vi. Click on the New tab.
vii. Type "PATH" in the Name bar and fill the Value bar with the path of the compiler. For me, its C:\MinGW\bin.
vii. Click on OK and you are done!
The instructions you link to have you install Eclipse IDE for C/C++ developers which will work fine to get a C/C++ development environment up.
If you would instead like to use your EXISTING installation of Eclipse and add C++ Development Tooling (CDT) you can launch Eclipse and then use Install New Software to install the C/C++ Development Tools

Eclipse: Other tab(to find C/C++) not showing up

I have a mac with Xcode and eclipse luna. I had another question saying that my mac could not program Xcode(with C++, not this question), so I turned to eclipse. Eclipse luna programs well with java... but I am interested in C++. So I look at a tutorial on how to include the C++ library with a project. I found that you must go to New --> Other... But there is no other. Then I look if the other tab does not show up tutorial and they said you must go t the top left of the screen and select C/C++, witch doesn't show ether. How can I make those tabs show up?
The correct URL is supposed to be http://download.eclipse.org/tools/cdt/releases/8.4/.
http://download.eclipse.org/tools/cdt/releases/luna is an invalid link.
So to install CDT in Eclipse, just go to Help > Install New Software... and add http://download.eclipse.org/tools/cdt/releases/8.4/ to your list of repositories.
You need to add CDT (C/C++ Development Tooling) to your Eclipse.
It was compatible with Kepler, but the Luna CDT edition (8.4.0) is now available, June 25th, 2014:
p2 repository: p2 software repository: http://download.eclipse.org/tools/cdt/releases/8.4.
p2 repository for Luna: http://download.eclipse.org/releases/luna
Eclipse with CDT: Eclipse IDE for C/C++ Developers
Use the "Install New Software..." dialog and entering the p2 repository URLs.

Netbeans Code Assistance C++

I'd like to activate the Netbeans Code Assistance but for C++, I just installed Netbeans 8.0 and followed all the steps in Netbeans site for installing Cygwing compiler. I am now able to compile C++ code; however the facility of Code Assistance doesn't appear. I don't know how to activate it.
Code assistance should be active by default. Make sure your project properties aren't screwed up:
Also you might need to add include directories in the Netbeans global options, which are in the "Tools" submenu for my Netbeans version:

Cygwin and Eclipse Helios setup

I am trying to learn C++ with Cygwin and Eclipse Helios.
I got all the development tools under Cygwin installed; and installed the CDT package for Helios.
The problem is I don't see an option to create a C++ project from makefile or any other option. I can only see options for a C Project, C++ project and a new project from existing source code.
Here is what I referred to:
Eclipse seminar
Developing applications using the Eclipse C/C++ Development Toolkit
Questions:
Is there any clear guide to setup Eclipse for Cygwin?
Am I missing something in the setup?
any other suggestion will be helpful.
Are you asking how to setup GCC in cygwin + Eclipse? How about this tutorial?
I found this tutorial to be a very good source. It was almostperfect, apart that one more path needed to be add to the folder containing cygstdc++-6.dll which prevented anything to be printed on console. So, add to the Project Properties -> C/C++ General -> Paths and Symbols -> Includes GNU C++ the path to the missing dll folder: ${CYGWIN_HOME}/usr/i686-pc-cygwin/sys-root/usr/bin.