Possible Duplicate:
What is an undefined reference/unresolved external symbol error and how do I fix it?
While g++ report "error: undefined reference to 'Log::flush()'", it means I lost a source code which define the member function flush of class Log like this:
class Log{
... ...
int flush();
... ...
};
But if the g++ report "error: undefined reference to 'Log::outFile'", What is lost? There is no ()
so this is not a function, so why is there anything that needs defining?