From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: LD errors compiling source from gnupg-1.0.1.tar.gz Date: Tue, 29 Feb 2000 11:35:52 +0200 Organization: NetVision Israel Lines: 26 Message-ID: References: <38BAC45B DOT 1C5B3FB0 AT is DOT elta DOT co DOT il> <3vmmbssfu537j927abaevorsgpbj53atte AT 4ax DOT com> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 951817124 29675 199.203.121.2 (29 Feb 2000 09:38:44 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 29 Feb 2000 09:38:44 GMT X-Sender: eliz AT is In-Reply-To: <3vmmbssfu537j927abaevorsgpbj53atte@4ax.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 29 Feb 2000, Damian Yerrick wrote: > >> >> Is "ifdef DOS appropriate? > >> > > >> >No, you should use "#ifdef __DJGPP__". This is specific to the DJGPP > >> >configuration, someone else could come up with a DOS compiler that > >> >doesn't prepend underscores. > >> > >> What other DOS compilers use Gas-backward AT&T assembly? > > > >The issue wasn't AT&T assembly style, the issue was > >underscores in external symbols declared by C code. > > Correlated. Read on: > > >DJGPP is one of the very few environments where the underscores > >are prepended by the compiler (for historical reasons). > > And one of the very few environments (on DOS at least) > that uses AT&T syntax. Currently, AT&T + DOS = DJGPP. The question to which I was replying was about an ifdef that determined whether the compiler prepends underscores to symbols declared in C. This is required even with Intel-style assembly, but might not be required with other DOS compilers.