This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Missing memmove and memset defintions.


Hi,

Is there someone that can help me. I have a program that uses Gtk+, C++,
and STL. One file in the STL, straits.h, includes string.h and makes
calls to memmove and memset. memmove and memset are declared 'extern' in
string.h. When I include STL classes in parts of my program that use
Gtk+ I can compile the program. However, I have a small part of the
program that doesn't use Gtk+, just C++ and STL. When I compile this
code the file straits.h produces an 'implicit declaration of function'
error for its calls to memset and memove. If I copy and paste in
definitions for memmove and memset it compiles without error. I'm using
Linux-Mandrake 7.2. I have searched the /usr/include and /usr/lib and
can't find a library that has a definiton of these functions. I looked
at the libc source code and noticed that in the generic subdirectory
were the files memmove.c and memset.c but couldn't find any in the i386
directory.

Where do I find the definitions of these fuctions so I don't have to add
my own.

Thanks.

Jeff.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]