Microsoft cl compiler won't find standard header files

Microsoft cl compiler won't find standard header files

Post by jayharri » Thu, 11 Aug 2005 03:07:42


Can anybody help me figure out why my cl compiler (or pre-processor)
can't find the standard header files. For instance, I have a simple C
program:

#include <stdio.h>

void main() {
printf("Hello world\n");
return;
}

I compile it from the directory that it's in with the command: cl
test.c

And I get the following error message:

test.c(1) : fatal error C1083: Cannot open include file: 'stdio.h': No
such file or directory

Anybody know what I can do about this?

Thanks,

Jay
 
 
 

Microsoft cl compiler won't find standard header files

Post by Mona » Fri, 19 Aug 2005 05:05:07

Hi Jay,

Regarding this issue of getting a Fatal Error : C1083, I would request you
to please go through the following article which gives a woraround of this
error by editing the AUTOEXEC.BAT file to replace the backslash character in
a directory specification with a forward slash character :

[FIX: C1024 or C1083 Error When INCLUDE Set to Root Directory]
http://www.yqcomputer.com/ ;en-us;97809

Hope this helps.

Best Regards,
Mona [Grapecity]