[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Date: Thu, 28 Jun 2001 08:59:02 -0400



Seems something is wrong with the string.h library.
Try to create a small C program to see if the command

#include <string.h>

works.

eg.
#include <stdio.h>
#include <string.h>

main(int argc, const char*const* argv) {
if ((argc>1)&&strcmp(argv[1],"Hello")==0) printf ("OK\n");
}

should print OK, if you compile it and execute ./a.out Hello

If it works, check the #include lines on the mentioned files and make sure
they write

#include <string.h>
and NOT
#include "string.h"

Otherwise check why your C compiler doesn't work.

Diego Matute wrote:

> Hello,
>
> I get this following error when I try to install ns-allinone-2.1b5. I am
> running RedHat 7.1.
>
> In file included from ../tclcl-1.0b8/tclcl.h:41,
>                  from rng.h:50,
>                  from random.h:42,
>                  from random.cc:40:
> /usr/include/string.h:242: declaration of C function `void memcpy (void
> *, const void *, unsigned int)' conflicts with
> /usr/include string.h:38: previous declaration `void *memcpy (void *,
> const void *, unsigned int)' here
> /usr/include/string.h:245: type specifier omitted for parameter
> /usr/include/string.h:245: parse error before `0'
> /usr/include/string.h:245: declaration of C function `void memset
> (...)' conflicts with
> /usr/include/string.h:55: previous declaration `void *memset (void *,
> int, unsigned int)' here
> make: *** [random.o] Error 1
> NS make failed! Exiting ...
>
> Does this have something to do with the path file? I am not sure how to use
> it. Thanks,
>
> Diego Matute