Here's a few of the more interesting issues we encountered along the way:
SmartPointers (for the Picture class) automatically free themselves when they fall out of scope.
What happens when they fall out of scope of the C++ code?
Create a new SmartPointer which references the SmartPointer which is returned by the C++ function
Use the get() function to get the standard C pointer out of the SmartPointer
Impractical to place a local copy of the MyroC library on each student's account
Need a simple method of compilation
Solution: A shared library!
Central location on the network allows easy maintenance and updating by course professor
Students set 3 environmental variables in their .bashrc files
Students compile using
gcc -lMyroC -o yourProg yourProg.c
created 26 February 2012|
last revised 29 February 2012