Date: Wed, 18 Feb 1998 10:21:19 +0200 (IST) From: Eli Zaretskii To: Shaun Jackman cc: djgpp AT delorie DOT com Subject: Re: Modify global variables from within a program In-Reply-To: <34E7B601.DAE03C63@rogers.wave.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.