[cfe-dev] need help

Wei Li weili747 at gmail.com
Tue May 17 12:35:38 PDT 2011


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]);
                                        ^
2 warnings generated.
/usr/bin/ld: crtbegin.o: No such file: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

----------------------------------------




-- 
Regards,

Wei Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110517/11a0f41d/attachment.html>


More information about the cfe-dev mailing list