Installing EasyEclipse For C and C++ 1.3.0 On Mac OS X 10.4.6
7 September 2007In 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.
The next screen will display the Software License Agreement. Once you read it press Continue.
A screen will popup. Press Agree.
Now you will be shown the disk on which EasyEclipse will get installed.
Press Continue
On the next screen press Install.
The installation will start at this point.
After a few minutes a screen will be displayed that the software was successfully installed. Press Close
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.
You will be asked to select a workspace. You may choose to continue with the default workspace. Press OK to continue.
On the main screen there will be many icons where you can get the overview of the features supported.
Click File->New->Project
A Wizard for New Project will open.Select C++->C++ Project and press Next
Fill in the Project Name as HelloWorld, select the Project Type as Executable->Empty Project and then press Finish
You’ll be asked to switch to the C++ Perspective. Press Yes.
Now in the Project Explorer pane on the left, right-click HelloWorld and select New->Class
A wizard called “New C++ Class” will open. Enter the Class Name as HelloWorld and then press Finish.
Two files will be created “HelloWorld.h” and “HelloWorld.cpp” which will be shown in the Project Explorer Pane
Open the “HelloWorld.cpp” file and type the main function and print method as shown.
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
A dialog box will get opened which asks you to select the configuration to create.
Select C/C++ Local Application and then press OK.
Another dialog box opens up where you need to associate the HelloWorld project with the type of configuration you selected earlier.
Press the Search Project button. The HelloWorld you just created will be shown in a new dialog box. Select it and press OK.
Now in the C/C++ Application TextBox, Debug/HelloWorld will be shown. Press OK.
Now in the Run/Debug settings, HelloWorld will be shown on the right. Press OK
Now from the main window, select Run As-> Local C/C++ Application
The application will get built and then in the Console tab below “Hello World” will get printed.
No comments yet