It looks as though you haven't actually written a program, merely declared a
class with no actual code to make it work, and no main function to call the
class methods from.
The compiler makes an object file (with the .o extension) but cannot find
your main function to link this to. Without a main function you have no
program.
Kev.
----- Original Message -----
From: Narvaez, Viviana <viv...@co...>
To: <dev...@li...>
Sent: Thursday, March 14, 2002 5:53 PM
Subject: [Dev-C++] linker problem
> Hello all, I've been having trouble compiling my files. I get the
following
> message:
>
> C:\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference to
> `WinMain@16'
>
>(cut) .....
|