[LLVMdev] clang.exe: fatal error: 'stdio.h' file not found
Andrew Pennebaker
andrew.pennebaker at gmail.com
Tue Nov 19 16:49:41 PST 2013
I'm trying to compile hello.c with clang.exe, but I'm getting an error
about missing cstdlib headers.
Source:
https://github.com/mcandre/mcandre/tree/master/c/hello/
Trace:
C:\Users\andrew\Desktop\src\mcandre\c\hello>gmake
clang -O2 -Wall -Wextra -Wmost -Weverything -o hello hello.c
hello.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
gmake: *** [hello] Error 1
Do I need to add libs to the compile command, something like -lc? I tried a
few variants, like -lc, -lstdlib, -lcstdlib, with no success.
System:
* clang.exe version 3.4 (trunk), from LLVM 3.4.svn
* gmake 3.82, from StrawberryPerl 5.16.3.3
* Windows 8.1 Professional x64
--
Cheers,
Andrew Pennebaker
www.yellosoft.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131119/2b7fef90/attachment.html>
More information about the llvm-dev
mailing list