delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/29/04:01:09

From: "Jay" <ok11 AT ihatespam DOT sprint DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <9FE%3.35$t12 DOT 2812 AT newscontent-01 DOT sprint DOT ca> <Pine DOT SUN DOT 3 DOT 91 DOT 991128114608 DOT 6867S-100000 AT is>
Subject: Re: Is there an option in DJGPP to name functions name as is?
Lines: 28
Organization: n/a
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Message-ID: <ksf04.1775$t12.89001@newscontent-01.sprint.ca>
Date: Sun, 28 Nov 1999 11:34:21 +0100
NNTP-Posting-Host: 209.148.241.1
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 943817616 209.148.241.1 (Sun, 28 Nov 1999 14:33:36 EST)
NNTP-Posting-Date: Sun, 28 Nov 1999 14:33:36 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

For many compilers the stdcall convention does not generate the underscores,
so linking libs from those don't work. It doesn't matter any ways since it's
not a big deal and my version of GCC doesn't support
the -fno-leading-underscore flag anyways.

Eli Zaretskii wrote in message ...
>
>On Fri, 26 Nov 1999, Jay wrote:
>
>> I wanted to know if there was an command line option in DJGPP that names
all
>> C functions "as is", that is without adding the underscore before each
>> function name.
>
>Beware: if you do that, you will not be able to call any library
>functions, since they were all compiled with underscores prepended.
>
>You will also need to rebuild all the libraries with the appropriate
>GCC switch to turn this off, and also rebuild Binutils after
>configuring them with this option.  I also think that GDB knows about
>underscores, so it (and the debugger built into RHIDE) won't work
>without recompiling.
>
>Given all this trouble, are you sure you want it?  Can you explain why
>would you need to disable underscores?  I cannot imagine how can they
>hurt anybody.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019