|
From: Narvaez, V. <viv...@co...> - 2002-03-15 15:32:54
|
Thank you all for your responses. I guess you can tell I'm a newbie. Never seen a .o file. I'm so used to compiling as soon as I write a couple of lines to catch the minor errors. I'll try it one more time...this time I'll write more code and create a main :-) Thanks again!! -----Original Message----- From: Kevin Wood [SMTP:ke...@me...] Sent: Thursday, March 14, 2002 5:58 PM To: dev...@li... Subject: Re: [Dev-C++] linker problem 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) ..... _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |