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(
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
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
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
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,
>
5 matches
Mail list logo