These instructions explain how to install the course library folder (courselib) in Eclipse/C++. Then they explain how to create a project that uses the library. At various times during the quarter you may be asked to replace various .hpp or .cpp files and recompile the library.
or
right-click the courselib icon in the Project Explorer tab
and select Build Project.
The Console window should show the following.
You can also look in the Debug/src and src folders to see their .o and .hpp/.ccp files respectively. Future projects will refer to the courselib folder, to find the templated .hpp files in the top src folder, and the libcourselib.a file in the Debug folder. Later in the quarter you will be asked to study the code in the .hpp/.cpp files here for your programming assignments. If/when you are done looking now, elide all these icons leaving just the courselib icon.
Click Finish
Click Finish
and copy/paste the following code starting
on line 9.
#include "driver_set.hpp"
int main() {
ics::DriverSet d;
return 0;
}
The driver.cpp editor tab appears as follows
Right click in the editor window and Save this file. The should dissapear from the editor tab.
or
right-click in the test_set icon in the Project Explorer
tab and select Build Project.
The Console window should show the following.
.
The program should begin running and the Console window should show the following.
You can enter commands to test the sets (a topic we will cover soon).
You can also either click the Debug icon
or right-click in the driver.cpp
editor tab and select select
select Debug As | 1 Local C/C++ Application to run this program
under the Eclipse debugger.