Many thanks Reddy for yor help!
The error message has dissapear now, but another problem remains. Please have a look on first class.cpp, line 11 in my previous post. fileName is not used at all. If I delete it, it will not compile.
Do you have an idea how to solve the problem?