Subj : Linker Error To : borland.public.cpp.borlandcpp From : "Rupert harrison" Date : Fri Aug 15 2003 08:49 pm Does anyone know how i can solve this linker error my compiler seems to be giving me every time i try to include a .h file or create a class. Undefined symbol _main in library file C:\TCWIN45\LIB\cwl.lib I've tried adding a main() after my class, but that doesn't solve the problem. I've provided a copy of my .h file. #ifndef __RECT_H__ // Preprocess derective for inclusion #define __RECT_H__ #include class CRect { public: int left; // Public data members int right; int top; int bottom; CRect(); // Constructor declarations CRect(int left, int top, int right, int bottom); CRect(CRect &rect); CRect &operator=(const CRect &rect); bool PointWithin(int x, int y); // Public data functions int Width(); int Height(); }; #endif // _ _RECT_H_ _ .