Date: Sat, 12 Jul 1997 20:06:17 -0400 (EDT) Message-Id: <199707130006.UAA23204@delorie.com> From: DJ Delorie To: andrewc AT typhoon DOT rose DOT hp DOT com CC: djgpp-workers AT delorie DOT com In-reply-to: <199707112025.AA081222741@typhoon.rose.hp.com> (message from Andrew Crabtree on Fri, 11 Jul 1997 13:25:41 PDT) Subject: Re: libgcc.a problem in latest gcc snapshot Precedence: bulk > As part of the pgcc debugging process I have found that > libgcc.a includes a file __main.o that defines the > symbol __main. I noticed that in the binary gcc2721 distribution > from DJ it does not include a file with a __main symbol. > > One possible fix for this problem is to preprocessor declare > NAME__MAIN and SYMBOL__MAIN to be something besides __main. That > will cause the resulting function to be named differently so as > not to conflict with libc's _main. DJGPP's libc has a version of __main that is appropriate for it. Do not let libgcc.a provide one.