You forgot to add a main to the program.
You can compile it to object code with out a main (.o extension) but you can't create an executable.

02-01-2002

Claire

sorry?!
Can u explain that in simple english, coz I'm only a beginner!!

If you mean an int/main piece of code, I do have one of those, and I include my calender.cpp at the start of it.

But, I simply can't compile this code I have here!!

Thanks!

02-01-2002

shtarker

I don't see a file called calander.cpp included
I only see a calender.h

02-01-2002

adrianxw

>>> include my calender.cpp at the start of it.

If you mean you are using #include, with a .cpp file, then don't. For a projrct the size of yours, put all of the code in a single .cpp file.

02-01-2002

Unregistered

You need to add main() to your code some where
--------------------------------------------
int main()
{

//some code

return 0;
}

02-01-2002

shtarker

ohhhh i think i see your problem now.
Of course you can't compile that piece of code.
When you include it in another file then the compiler should automaticly compile it.
However its best just to compile them seperatly and link them together at the end. It still should work and is the simpelist way of doing it.
For mingw this is done by either: