eclipse ide setup for windows (cs 261) 1. install eclipse...

9
Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse for your system 2. Install CDT plugin (C/C++ development toolkit)

Upload: others

Post on 17-Oct-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

Eclipse IDE Setup for Windows (CS 261)

1. Install Eclipse for your system 2. Install CDT plugin (C/C++

development toolkit)

Page 2: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

Go to programming languages and select C/C++ Development toolkit

Page 3: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

3. Download and install MinGW(Minimalist GNU for Windows)-GNU compiler collection(GCC)

Page 4: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

4. Set up the environment variables – PATH variable for MinGW

5. Restart eclipse to complete all installations.

Page 5: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

6. Create a new makefile project with

existing code.

Page 6: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

7. Give a project name and the code location where your makefile and C code is present.

Page 7: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

8. Setup the Run configuration

Page 8: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

Open the makefile. We see the statement all: gcc -Wall -std=c99 -o a.out main.c This is the name of the C code name of executable

The name of the executable should match the C/C++ executable name in the run configuration.

Page 9: Eclipse IDE Setup for Windows (CS 261) 1. Install Eclipse ...people.oregonstate.edu/.../EclipseWindowsTutorial.pdfTips and Tricks... Report Bug or Enhancement... Cheat Sheets... Eclipse

9. Build and run the project to get output