[cfe-dev] need help
Sebastian Redl
sebastian.redl at getdesigned.at
Tue May 17 13:00:33 PDT 2011
On 17.05.2011, at 13:35, Wei Li wrote:
> Hi All:
>
> I am getting the following error when I try to compile a simple program using clang
>
>
> ----------
> /users/amm15/Clang/llvm-2.9/install/bin/clang 1djacobi.c
> 1djacobi.c:61:22: warning: implicit declaration of function 'strcmp' is invalid in C99 [-Wimplicit-function-declaration]
> if (argc > 42 && ! strcmp(argv[0], ""))
> ^
> 1djacobi.c:88:27: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration]
> if(argc > 1) T1_t = atoi(argv[1]);
> ^
Looks like you're not including <string.h>. I don't see that this is a Clang development issue.
Sebastian
More information about the cfe-dev
mailing list