tecnico conferenza

« PreviousNext »

Installing EasyEclipse For C and C++ 1.3.0 On Mac OS X 10.4.6

7 September 2007

In this article we will look at how to install EasyEclipse for C and C++ on Mac OS X Tiger. Before installing EasyEclipse, you should have Xcode installed. Xcode is an IDE from Apple for developing Mac OS X Applications. You can get more information about Xcode here. Once you install Xcode all the compilers such as gcc, g++ etc also get installed.

Having installed Xcode lets begin with EasyEclipse.

Specifically the version is EasyEclipse 1.3.0. You can download it from here.

Double click the installer package which is named EasyEclipse for C and C++ 1.3.0.pkg. A welcome screen will be displayed. Press Continue to proceed.

Welcome Screen

The next screen will display the Software License Agreement. Once you read it press Continue.

License Agreement

A screen will popup. Press Agree.

License Agreed

Now you will be shown the disk on which EasyEclipse will get installed.

Select Destination

Press Continue

On the next screen press Install.

Start Install

The installation will start at this point.

Installing

After a few minutes a screen will be displayed that the software was successfully installed. Press Close

Installed

Developing a C++ Hello World Application using EasyEclipse

As we have installed EasyEclipse let’s write a simple Hello World program in C++ using it.

During the process of installation, an icon of the name “EasyEclipse for C and C++ 1.3.0″ would be created in the Applications folder. Double click that icon.

EasyEclipse begins to load.

Starting EasyEclipse

You will be asked to select a workspace. You may choose to continue with the default workspace. Press OK to continue.

Select Workspace

Beginning EasyEclipse

On the main screen there will be many icons where you can get the overview of the features supported.

Main Screen

Click File->New->Project

New Project

A Wizard for New Project will open.Select C++->C++ Project and press Next

New C++ Project

Fill in the Project Name as HelloWorld, select the Project Type as Executable->Empty Project and then press Finish

New C++ Empty Project

You’ll be asked to switch to the C++ Perspective. Press Yes.

Open C++ Perspective

Now in the Project Explorer pane on the left, right-click HelloWorld and select New->Class

New C++ Class

A wizard called “New C++ Class” will open. Enter the Class Name as HelloWorld and then press Finish.

New C++ Class Name

Two files will be created “HelloWorld.h” and “HelloWorld.cpp” which will be shown in the Project Explorer Pane

Source and Header Files

Open the “HelloWorld.cpp” file and type the main function and print method as shown.

Main Function

Now before executing the application, you need to create a Run/Debug configuration for this project.
Click Project->Properties

A dialog box will be opened up. From the left pane, select Run/Debug Settings and from the right pane, press New

Project Properties

A dialog box will get opened which asks you to select the configuration to create.

Select C/C++ Local Application and then press OK.

Select Configuration Type

Another dialog box opens up where you need to associate the HelloWorld project with the type of configuration you selected earlier.

Associate Program

Press the Search Project button. The HelloWorld you just created will be shown in a new dialog box. Select it and press OK.

Program Selection

Now in the C/C++ Application TextBox, Debug/HelloWorld will be shown. Press OK.

HelloWorld Selected

Now in the Run/Debug settings, HelloWorld will be shown on the right. Press OK

Launch Properties

Now from the main window, select Run As-> Local C/C++ Application

Run As Local C/C++ Application

The application will get built and then in the Console tab below “Hello World” will get printed.

HelloWorld Executed

Posted in Mac OS X | Trackback | del.icio.us | Top Of Page

No comments yet

Leave a Reply