"Ian Abbott" <[EMAIL PROTECTED]> writes: >> Thanks for the suggestion and the code example. Two points, though: >> >> * Isn't it weird that the undefined symbol is _memmove, not memmove? >> It looks as if a header file is translating the symbol, thinking >> that _memmove exists. > > Not really. UNIX C compilers of old prefix C external symbols with > '_'. GCC doesn't do that unless targetted for a system that uses the > prefix in its standard system library symbols.
Thanks for the info. Obviously, it's been some time since I worked on a "real" Unix, other than Solaris. >> #ifndef HAVE_MEMMOVE >> # define memmove(to, from, len) bcopy(from, to, len) >> #endif > > That ought to work as the SunOS and BSD man pages say that the > strings can overlap. Ok, that's the info I needed.