Mail Archives: djgpp/1999/11/29/04:01:09
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 -