When I try to compile, it returns "undefined reference to 'allocatecsp()'" error in the lines marked with stars. Any idea why this would be (all variables not declared here are declared above the top)?

12-19-2010

laserlight

This:

Code:

void allocatecsp (); {

should be:

Code:

void allocatecsp () {

This line looks like it has another mistake:

Code:

if (cspreallocate = 0) {

Furthermore, avoid the use of global variables, and although you made a good attempt at indentation, it could still be improved.