just a quick note on the pedantic front, you return value from main should be an 'int', not 'void'. but that isn't causing your problem...
what is the name of the file you have this code in? it should have a .cpp extension. further, how is it that you are trying to build the code? can you describe that process? it will help in determining why you are seeing this problem.
|