[an error occurred while processing this directive]
[an error occurred while processing this directive]

Eclipse

Go to http://www.eclipse.org/ and select downloads. Select Eclipse IDE for C/C++ Developers. This is a zip file. Simply unzip it into a directory like: C:\Program Files\. Yes, this is not a standard installation, but it runs in Java.

Now you can launch Eclipse. It will be assumed that you have properly installed Cygwin. I indicated that my default workspace would be C:\Users\dwharder\WorkSpace. Create a directory p1a in this directory and copy all the header (.h) files and one of the source (.cpp) files, into this directory.

C:\Users\dwharder\WorkSpace>dir
 Volume in drive C is OS
 Volume Serial Number is 2894-1D6E

 Directory of C:\Users\dwharder\WorkSpace

25/09/2008  08:56 AM    <DIR>          .
25/09/2008  08:56 AM    <DIR>          ..
24/09/2008  08:02 AM    <DIR>          .metadata
25/09/2008  08:57 AM    <DIR>          p1a
25/09/2008  08:56 AM    <DIR>          p1b
               0 File(s)              0 bytes
               5 Dir(s)  381,804,802,048 bytes free

C:\Users\dwharder\WorkSpace>dir p1a
 Volume in drive C is OS
 Volume Serial Number is 2894-1D6E

 Directory of C:\Users\dwharder\WorkSpace\p1a

25/09/2008  08:57 AM    <DIR>          .
25/09/2008  08:57 AM    <DIR>          ..
25/09/2008  06:30 AM            13,741 ece250.h
25/09/2008  06:30 AM               348 Exception.h
25/09/2008  08:41 AM               875 Makefile.win
25/09/2008  06:30 AM             3,224 Single_list.h
25/09/2008  06:30 AM               777 Single_list_int_driver.cpp
25/09/2008  06:30 AM             9,569 Single_list_tester.h
25/09/2008  06:30 AM             1,737 Single_node.h
25/09/2008  06:30 AM             2,442 Single_node_tester.h
25/09/2008  06:30 AM               221 sld
25/09/2008  06:30 AM               314 sld.out
25/09/2008  06:30 AM               198 sli
25/09/2008  06:30 AM               314 sli.out
25/09/2008  06:30 AM             4,348 Tester.h
              13 File(s)         38,892 bytes
               2 Dir(s)  381,804,728,320 bytes free

C:\Users\dwharder\WorkSpace>dir p1b
 Volume in drive C is OS
 Volume Serial Number is 2894-1D6E

 Directory of C:\Users\dwharder\WorkSpace\p1b

25/09/2008  08:56 AM    <DIR>          .
25/09/2008  08:56 AM    <DIR>          ..
25/09/2008  06:30 AM             3,173 Cyclic_list.h
25/09/2008  06:30 AM            10,487 Cyclic_listTester.h
25/09/2008  06:30 AM               775 Cyclic_list_int_driver.cpp
25/09/2008  06:30 AM            13,741 ece250.h
25/09/2008  06:30 AM               348 Exception.h
25/09/2008  06:30 AM             1,737 Single_node.h
25/09/2008  06:30 AM             2,442 Single_node_tester.h
25/09/2008  06:30 AM             4,348 Tester.h
               8 File(s)         37,835 bytes
               2 Dir(s)  381,804,728,320 bytes free

C:\Users\dwharder\WorkSpace>

You will note that I included only the Single_list_int_driver.cpp in one directory and Cyclic_list_int_driver.cpp in the other—I did not include either *_list_double_driver.cpp.

Now, in Eclipse, you will see a Welcome screen with a number of icons. Select the icon to the right (an arching arrow) which, when highlighted, says Workbench. From the menu, select File→New→C++ Project which brings up the C++ Project dialog. Give the Project name p1a. This will use the directory p1a for the project and immediately include all files in this project.

To compile the project, select Project→Build All. You will see that a new directory Debug has been created in p1a. The executable has been saved in this directory. The DEBUG version has additional information stored in the executable which allows debugger program to step through the code one instruction at a time, however, when it is run at the Command Prompt, the behaviour is no different from a normal execution.

C:\Users\dwharder\WorkSpace\p1a>dir
 Volume in drive C is OS
 Volume Serial Number is 2894-1D6E

 Directory of C:\Users\dwharder\WorkSpace\p1a

25/09/2008  09:23 AM    <DIR>          .
25/09/2008  09:23 AM    <DIR>          ..
25/09/2008  09:13 AM            30,204 .cproject
25/09/2008  09:13 AM             2,509 .project
25/09/2008  09:22 AM    <DIR>          Debug
25/09/2008  09:16 AM            13,741 ece250.h
25/09/2008  09:16 AM               348 Exception.h
25/09/2008  09:16 AM               875 Makefile.win
25/09/2008  09:16 AM             3,224 Single_list.h
25/09/2008  09:16 AM               777 Single_list_int_driver.cpp
25/09/2008  09:16 AM            42,574 Single_list_int_driver.o
25/09/2008  09:16 AM             9,569 Single_list_tester.h
25/09/2008  09:16 AM             1,737 Single_node.h
25/09/2008  09:16 AM             2,442 Single_node_tester.h
25/09/2008  09:16 AM               221 sld
25/09/2008  09:16 AM               314 sld.out
25/09/2008  09:16 AM               198 sli
25/09/2008  09:16 AM               314 sli.out
25/09/2008  09:16 AM             4,348 Tester.h
              16 File(s)        113,395 bytes
               3 Dir(s)  381,792,329,728 bytes free

C:\Users\dwharder\WorkSpace\p1a>dir Debug
 Volume in drive C is OS
 Volume Serial Number is 2894-1D6E

 Directory of C:\Users\dwharder\WorkSpace\p1a\Debug

25/09/2008  09:22 AM    <DIR>          .
25/09/2008  09:22 AM    <DIR>          ..
25/09/2008  09:23 AM             1,369 makefile
25/09/2008  09:21 AM               237 objects.mk
25/09/2008  09:22 AM           728,269 p1a.exe
25/09/2008  09:22 AM               349 Single_list_int_driver.d
25/09/2008  09:22 AM           212,966 Single_list_int_driver.o
25/09/2008  09:23 AM               545 sources.mk
25/09/2008  09:23 AM               775 subdir.mk
               7 File(s)        944,510 bytes
               2 Dir(s)  381,792,329,728 bytes free

C:\Users\dwharder\WorkSpace\p1a>Debug\p1a.exe < sli
Starting Test Run
1 % Okay
2 % Okay
3 % Okay
4 % Okay
5 % Failure in pop_front(): expecting the value '7' but got '0'
6 % Failure in size(): expecting the value '1' but got '0'
7 % Okay
8 % Okay
9 % Failure in front(): expecting the value '7' but got '0'
10 % Failure in back(): expecting the value '3' but got '0'
11 % Failure in head(): expecting a non-null head pointer
12 % retrieve: Command not found.
13 % 7: Command not found.
14 % next: Command not found.
15 % retrieve: Command not found.
16 % 3: Command not found.
17 % next: Command not found.
18 % retrieve: Command not found.
19 % 7: Command not found.
20 % Okay
Finishing Test Run

C:\Users\dwharder\WorkSpace\p1a>type sli.out
Starting Test Run
1 % Okay
2 % Okay
3 % Okay
4 % Okay
5 % Okay
6 % Okay
7 % Okay
8 % Okay
9 % Okay
10 % Okay
11 % Okay
12 % Okay
13 % Okay
14 % Okay
15 % Okay
16 % Okay
17 % Okay
18 % Okay
19 % Okay
20 % Okay
21 % Okay
22 % Okay
23 % Memory allocated minus memory deallocated: 0
24 % Exiting...
Finishing Test Run

C:\Users\dwharder\WorkSpace\p1a>
[an error occurred while processing this directive]