Mail Archives: djgpp/1998/02/18/03:21:28
On Sun, 15 Feb 1998, Shaun Jackman wrote:
> What this script actually gives is:
> void register_globals() {
> register_global(&_globalvar1, "_globalvar1");
> register_global(&_globalvar2, "_globalvar2");
> register_global(&_globalvar3, "_globalvar3");
> register_global(&,);
> }
>
> How can I fix my script?
The DJGPP setup causes the compiler to prepend an underscore `_' to
the symbols when it emits object code. You need to remove these
underscores from `nm's output. The `--demangle' option to `nm' will
do that for you.
- Raw text -