I have a source file that compiles, but there is a syntax error in the file. I also compiled with an older version of g++ (I think it was 2.1 or 1.2, some obsolete version that is on a SunOS machine I don't have access to). In .NET (I do not own it, it is my professors computer) it throws a Syntax error on line 156, that there is not a return statement. When I fix then add the return statement on line 156 in .NET it then compiles and gives the same output as g++ in mandrake 9.0 which does not throw the syntax error.
When you ask for warnings( what you should always do), last one is :
project1.cpp: In member function `bool RoundRobinBlockedList::isEmpty() const':
project1.cpp:157: warning: control reaches end of non-void function
That means a return is missing. That's not an error so I guess there is a default value (maybe 0 or it is undefined, I don't know the norm) when return is missing.
