I was trying to set up my development environment on Eclipse CDT for C++ and although the auto-complete is working (it finds classes like vector and such) it shows no documentation on C++ stuff, only C stuff (fopen, fclose, malloc) has documentation appearing on the auto-complete.
Some notes:
I'm using Linux Mint and Eclipse Kepler Service Release 1 Build id: 20130919-0819
I had to manually install g++ on my Linux. I used 'sudo apt-get install g++-4.7' to install it
I had to manually place "/usr/include/c++/4.7.3/" on the GCC C++ Compiler Includes in the Tool Settings in the project properties to get it to compile.
Any ideas on how to get the documentation in there?
The help on C is provided by Libhover plugin. The developers tried to support C++ but seems these efforts did not get much traction.
C++ hover is actually installed by default in CDT. If not, you can install it manually (at CDT site look for "Plugins for C/C++ library hover help." and "Plugins for creating hover help from installed C devhelp documentation").
However, it is not enough. To get hovering help similar to C documentation you have to generate Doxygen XML for your library, e.g. for STL. Details are provided in hover documentation
Related
I'm running Eclipse Oxygen.1 IDE for Java Developers 64 bit and I want to add the C/C++ language to it so I can write and compile code for my C Language class using only one IDE. When I go to install new software am I supposed to be installing the development tools for under the programming language tab or from the CDT tab or both? The tools under the Programming Language tab are version 9.3.2 and the tools under CDT tab are version 9.3.0. I'm confused as to which ones I'm supposed to install. Also if anyone could help me with the installation of MinGW. I'm running Windows 10 on a 64 bit operating system. And I'm not sure as to how I can get the latest version of MinGW for 64 bit OS. Any help is appreciated. Thanks!
You can have a combined IDE. I use one that combines the Eclipse SDK, including Java and a bunch of other things all in one. It's a bit clunky to do but can be done. Just go to the Help -> Install New Software... menu item and bring up the install dialog.
First install one of them, Java or C/C++. Then after launching it, select the "Luna - http://download.eclipse.org/releases/oxygen" item in the "Work with:" selector. Then find the other IDE components you would like in the list and install it.
I had Oxygen with java and pydev but experienced great difficulty adding cdt yesterday. I have some good reasons for keeping Oxygen instead of upgrading (older code and even OS compatibility since I'm still running High Sierra, again there are reasons for doing that). One key is finding the url given above download.eclipse.org/releases/oxygen . However, my install would still not work, for some unknown reason.
Here is the important part of my comment. Installs and updates can take forever if you don't uncheck the box on the install page which says this:
Contact all update sites during install to find required software
It is a known bug, that it is checked by default, but never to be fixed. https://bugs.eclipse.org/bugs/show_bug.cgi?id=340298
Also this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=340298 was applied to cdt 9.3 if you get the pty error trying to compile.
I recently installed the CDT plugin for C++ development in Eclipse. It provides useful features for building and debugging. However it does not have the following features available for Java:
Auto-complete of library functions or even user defined functions, variables etc.
Syntax checking as you type. For e.g., if I miss a ';' at end of line, it is not highlighted.
In short I'm looking for a plugin or someway to customize CDT to have the same support Eclipse provides for Java code.
Clarification - All the features I'm looking for are related to C++ code development.
CDT comes only with C and C++ tools. You need to also install the Java tools, like this:
Choose: Help | Install New Software...
In the "Works with:" drop-down box, choose: --All Available Sites--
Select: Eclipse Java Development Tools
I am using Eclipse classic 4.2.1 (Juno) on my new mac to develop c/c++ programs. When I create a new project their is a choice of "Toolchains" to use: Cross GCC, MacOSX GCC and XL C/C++ Tool Chain.
Which one should I choose? I also use the mac terminal to run, make and vim the same code sometimes.
Maybe GCC is in common use if your app will run both in mac and windows
I had the same problem on my Mac OS X Luna(eclipse 8.4) but they are the same edition in general. Just goto the Help tab and click on "Install new software..." or anything similar to that. Type this in the big obvious add software link (pretty much just the test input at the top of the new opened window):
http://download.eclipse.org/tools/cdt/releases/juno
if you think juno can handle the newest version, type this in:
http://download.eclipse.org/tools/cdt/releases/8.4
Select every thing and proceed with the download.
You should now be able to create C/C++ projects and source files. I found this to be slightly buggy, like sometimes not include the standard C++ library, or std does not even exist but this should work if you install the correct version.
I am looking for a C++ IDE, typically for debugging purpose. In particular, where I can navigate in source code; say method definition, member declaration etc.
I am a Java developer and use Eclipse. I create J2ME project in Eclipse, build it and finally deploy it at same place. At the time of debugging I can easily trace out what I am looking for.
For C/C++ support I installed plug-in "Eclipse C/C++ Development Tools".
After installing above plug-in, C/C++ code open with font/style/color...but not able to navigate :(
Please help me.
Thanks,
Amit
the cdt plugin from eclipse works fine for me. Perhaps you should update to the latest version and make sure you change your perspective to c++.
Another great c++ ide is qtcreator.
I want to use Eclipse to develop C++ projects on Linux. Particularly I want to modify stable and widely used open source projects using the Eclipse CDT. One of them is Intel Opencv. There are tutorials to create simple c++ projects like here:
http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt/ .
I have seen plenty of tutorials for using Eclipse CDT to write programs in
OpenCv like here:
http://opencv.willowgarage.com/wiki/Eclipse
http://tommy.chheng.com/development/windows_development_setup.html
http://tommy.chheng.com/index.php/2009/05/opencv-with-eclipse-on-windows/
However I
want to use Eclipse to make changes to the OpenCv platform itself and compile it
from there. I really like many of Eclipse's features like:
Syntax highlighting
Outline
Code assist
Code templates
Code history
etc.
Would someone write a
small tutorial on how one can make a project in Eclipse from the OpenCv tarball? I would use Eclipse CDT on Linux.
Can Eclipse CDT recognize Makefile as it can do for Ant scripts?
I made the experience that for OpenCV using cmake is the way to go. You can unzip the cmake source code and use cmake to compile it. Even after your changes. There are some tools to integrate cmake into eclipse but I found them unstable or not very mature so I use cmake from a terminal to compile and eclipse for editing the source files.
If you follow Janusz's advice about using cmake you can find here a good tutorial about using cmake and its eclipse projects generator (I actually followed it no long time ago :-) ). In this link you will find more information about that generator (Eclipse CDT4 Generator)
Simplest way to deal with existing C sources with their own build setup is generally to use a 'Makefile Project' rather the 'managed Project'. For cmake, go to the 'Make Targets' view and enter cmake as the executable.
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.cdt.doc.user/getting_started/cdt_w_newproj.htm
How to import C makefile project into eclipse or put in under eclipse
http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.cdt.doc.user/getting_started/cdt_w_existing_code.htm