|
From: Casper H. <ch...@us...> - 2002-05-19 10:04:03
|
s=F8n, 2002-05-19 kl. 00:13 skrev KJK::Hyperion: > That's not the problem. crthybrid.c, in my case, implements the entry poi= nt=20 > (__PdxLdrEntry, with the same signature as NtProcessStartup), then calls=20 > exit() with the return value of main() as parameter, because it's, as the= =20 > name suggests, a static CRT for Win32-POSIX+ hybrids, that converts/impor= ts=20 > the Win32 environment, invocation, standard file descriptors, current=20 > directory, etc. and then calls main() >=20 > The idea is to have something clean and self-contained, and containing=20 > exactly what the code says, no more no less, because it's easier to debug >=20 > The problem is that the C frontend of GCC *always* inserts a call to=20 > _main() at the beginning of all functions called main(), without me askin= g=20 > for, or even *wanting* it. I'll just insert a dummy _main() in crthybrid.= c=20 > until it's fixed, but I *really* hate this Try bringing this up on the gcc mailing lists. They probably have a reason for doing it. |