Mail Archives: djgpp/1997/04/21/06:29:35
Ali Bharmal wrote:
> If you can help (or I missed the obvious) then please email me
Yes, you missed the obvious <g>. You declared the functions
as 'static', this means that the names are local to the module
and are never seen by the linker. But it's the linker which you
have to tell "I've got my own versions of these functions, so
don't load the library ones"; since it never sees your versions
it goes ahead and loads the library ones as usual.
Just take out the word 'static' from the dclarations and it will
all work (barring other problems, of course!).
(Hmm, you're using C++. I'm not certain, but you may need to
replace 'static' with 'extern "C"', so they become:
extern "C" void __crt0_load_environment_file(char *_app_name);
etc. Try it and see. And please let me know which one works...)
Chris
- Raw text -