Mail Archives: djgpp/1999/01/03/04:14:15
On 2 Jan 1999, Martin Str|mberg wrote:
> I'm no expert on C++, but it seems you have to declare
> __crt0_glob_function() as "extern C" (or whatever it's called - that's
> how small a C++ expert I am) or put it in a file compiled as C not
> C++.
That is *exactly* the solution. Without the "extern C" declaration, the
compiler mangles the name of __crt0_glob_function into something else,
and so the linker doesn't replace the library function with your empty
one (because the linker sees a different name).
- Raw text -