[cfe-dev] clang.exe: fatal error: 'stdio.h' file not found

Hinton, Don Don.Hinton at pimco.com
Wed Nov 20 09:30:41 PST 2013


Hi Andrew:

Did you run vcvars32.bat first?  On my system, it's found here:

"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"

It setups up some environment variable needed to find include files and libraries, i.e., INCLUDE and LIB.

hth...
don

From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Andrew Pennebaker
Sent: Wednesday, November 20, 2013 8:43 AM
To: Clang Dev
Subject: [cfe-dev] clang.exe: fatal error: 'stdio.h' file not found

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, from the official LLVM snapshot installer<http://llvm.org/builds/>
* gmake 3.82, from StrawberryPerl 5.16.3.3
* Windows 8.1 Professional x64

--
Cheers,

Andrew Pennebaker
www.yellosoft.us<http://www.yellosoft.us>

This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute, alter or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or without error as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise during or as a result of e-mail transmission. If verification is required, please request a hard-copy version. This message is provided for information purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments in any jurisdiction.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131120/dea8d0d2/attachment.html>


More information about the cfe-dev mailing list