Re: g++ libcygwin.a has an undefined reference

2004-05-18 Thread Jani tiainen
Please, avoid top postings, this is hard to reply... Christian Rudiger wrote: Hello Al, thank you, it worked. i putted one at the end of the program just writing : }; // end of class int main(){} why does that work? I think thats strange. Strange? Every program needs starting point. For standard C(

Re: g++ libcygwin.a has an undefined reference

2004-05-18 Thread Larry Hall
It's not really strange at all if you think about what you're asking the compiler/linker to do. You've asked for an executable but provided no entry point. Without "main()", there is no entry point so linking fails. You can certainly compile what you have into an object file but an executable r

[OT] Re: g++ libcygwin.a has an undefined reference

2004-05-18 Thread chris jefferson
Christian Rudiger wrote: Hello Al, thank you, it worked. i putted one at the end of the program just writing : }; // end of class int main(){} why does that work? I think thats strange. Regards Christian Rudiger I thought I would post this to the list, because it's nice to have complete dicussion

Re: g++ libcygwin.a has an undefined reference

2004-05-18 Thread Christian Rudiger
Hello Al, thank you, it worked. i putted one at the end of the program just writing : }; // end of class int main(){} why does that work? I think thats strange. Regards Christian Rudiger Al Slater wrote: Try putting a main function in the program! Regards Al -Original Message- From: [EMAIL

RE: g++ libcygwin.a has an undefined reference

2004-05-18 Thread Al Slater
Try putting a main function in the program! Regards Al > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Christian Rudiger > Sent: 18 May 2004 11:09 > To: [EMAIL PROTECTED] > Subject: g++ libcygwin.a has an undefined reference > > > Hello there, >