Changes between Initial Version and Version 1 of COP3402Spring2011/InstallEclipseCpp


Ignore:
Timestamp:
08/25/11 21:01:22 (13 years ago)
Author:
admin
Comment:

First version copied from Remo's Wiki

Legend:

Unmodified
Added
Removed
Modified
  • COP3402Spring2011/InstallEclipseCpp

    v1 v1  
     1= Installing Eclipse for C/C++ =
     2[[PageOutline]]
     3
     4These are some step-by-step instructions on how to setup Eclipse for compiling C/C++ programs. If you prefer to use Visual Studio or any other IDE, you can simply ignore them :-) .
     5
     6Depending on your operating system and Eclipse configuration there are multiple steps necessary to succeed.
     7
     8By default, Eclipse will use the C/C++ GNU development tools to compile, link, and debug your programs. If you are running Linux and MacOS you shouldn't have a problem, as long as you have gcc, make, and gdb installed.
     9
     10Under Windows, you have to install the GNU development tools, but fortunately there is an Eclipse extension called "Wascana" that takes care of that. See below for detailed instructions on how to acquire it. If you develop under Linux or MacOS, just skip the instructions on installing "Wascana".
     11
     12If you already have Eclipse for Java installed and want to add the C/C++ functionality, please start reading [#IfyoualreadyhaveEclipseforJavainstalled here].
     13If you prefer a new Eclipse installation, start reading [#IfyouprefertoinstallaseparateEclipse here].
     14
     15If you encounter any problems, please send me an e-mail ( rpillat@knights.ucf.edu ) or see me during my office hours.
     16
     17== If you already have Eclipse for Java installed ==
     18  - If Eclipse is installed somewhere in your user folder, simply launch the executable. Otherwise, make sure to right-click the executable and select "''Run as administrator''" (you will need write access to the Eclipse folder to install the new plugins).
     19
     20 - Once the workspace opens, select "Help -> Install new software"
     21 - A new window opens. In the "Work with:" combobox, select the "Helios" repository.
     22 - There will be a list of available packages. You are only interested in the "Programming Languages -> C/C++ Development Tools" software. Select the checkbox in front of it
     23
     24   [[Image(eclipse_cdt_install.png)]]
     25
     26 - Now hit the "Next" button, accept the license terms and click "Finish".
     27 - Eclipse will ask you to restart, so please do so.
     28
     29 - Now we have to install one more package. Once the workspace opens, select "Help -> Install new software" (for the second time ;-) )
     30 - In the upper-right corner click the "Add" button.
     31 - In the new "Add repository" window, enter "Wascana" under "Name" and "http://svn.codespot.com/a/eclipselabs.org/wascana/repo" under "Location". Click the OK button.
     32   
     33   [[Image(wascana_install.png)]]
     34
     35 - Eclipse will now add "Wascana C/C++ Developer for Windows" to the list of available software. Mark the checkbox in front of that.
     36
     37   [[Image(wascana_install_2.png)]]
     38
     39 - Now hit the "Next" button twice, accept the license terms and click "Finish".
     40 - Eclipse will ask you to restart, so please do so.
     41
     42 - Read on if you want to know how to [#CreatinganewCCproject create a new C/C++ project]
     43
     44== If you prefer a new Eclipse installation ==
     45 - Download "Eclipse IDE for C/C++ Developers" from http://www.eclipse.org/downloads/
     46 - Unzip the archive somewhere in your user folder.
     47 - Start Eclipse.
     48
     49 - Once the workspace opens, select "Help -> Install new software"
     50 - A new window opens. In the upper-right corner click the "Add" button.
     51 - In the new "Add repository" window, enter "Wascana" under "Name" and "http://svn.codespot.com/a/eclipselabs.org/wascana/repo" under "Location". Click the OK button.
     52
     53   [[Image(wascana_install.png)]]
     54
     55 - Eclipse will now add "Wascana C/C++ Developer for Windows" to the list of available software. Mark the checkbox in front of that.
     56
     57   [[Image(wascana_install_2.png)]]
     58
     59 - Now hit the "Next" button twice, accept the license terms and click "Finish".
     60 - Eclipse will ask you to restart, so please do so.
     61
     62 - Read on if you want to know how to [#CreatinganewCCproject create a new C/C++ project]
     63
     64== Creating a new C/C++ project ==
     65 - From the menu select "File -> New -> C++ Project" (or "C Project" if you prefer). If these options don't show up, try to find them under "File -> New -> Other -> C/C++".
     66   A wizard for a new project will open. Enter an appropriate name and select "Hello World C++ project".
     67
     68   [[Image(new_cpp_project.png)]]
     69
     70 - Click "Finish" and you are the proud author of a C++ HelloWorld project. It's a simple project that only prints out a greeting to the console when you run it.
     71
     72 - To build the project click the hammer symbol, to run it the play button, and to debug it the little bug.
     73
     74   [[Image(build_debug_run.png)]]