[cfe-dev] need help

Eric Christopher echristo at apple.com
Tue May 17 13:19:37 PDT 2011


On May 17, 2011, at 1:00 PM, Sebastian Redl wrote:

> 
> 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.

I think he meant the linker issue :)

Wei: What system is this on? And where is crtbegin.o on your system? Can you run clang with -v to see?

-eric



More information about the cfe-dev mailing list