[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Date: Thu, 28 Jun 2001 08:59:02 -0400
Hi,
I have been having a similar problem as Diego Matute while installing
ns-allinone2.1b5. I went through your suggestions and the sample program
seems to be working fine. i also checked that in the mentioned files it is
indeed #include <string.h>.
Could you please give anyother suggestion or tell how to check C
compiler?
thanks
regards
Nipul Shah
On Thu, 28 Jun 2001, Nikolaos Katsarakis Austauschstud. (M. Schweigel) wrote:
> 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.