Cannot open include file: 'stdio.h'

Started by herge, March 10, 2008, 07:17:35 PM

Previous topic - Next topic

herge

 Hi:

I have downloaded C++ 2005 from Microsoft.
But I am having a few problems.
It can't find stdio.h which is probably used in
most programs,
Deleting intermediate and output files for project 'ASC32TIME', configuration 'Debug|Win32'
Compiling...
stdafx.cpp
f:\c_files\asc32time\asc32time\stdafx.h(10) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
Build log was saved at "file://f:\C_files\ASC32TIME\ASC32TIME\Debug\BuildLog.htm"
ASC32TIME - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Any Suggestions.
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

Vortex

stdio.h is located in

C:\Program Files\Visual Studio 2005 directory name\VC\include

Try to build the application by running the Visual Studio 2005 Command Prompt :

QuoteStart -> Programs -> Visual C++ 2005 Express Edition -> Visual Studio Tools -> Visual Studio 2005 Command Prompt

herge

 Hi Vortex:

Can't say it made much difference. It hasn't found ANY *.H file,
If I comment out first ,it won't find the second one either.
So we can't see include files.
Also get deprecated messages.


Copyright (C) Microsoft Corporation.  All rights reserved.

green32.cpp
F:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\afxwin1.inl(1034) : error
C4430: missing type specifier - int assumed. Note: C++ does not support default
int
F:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\afxwin1.inl(1036) : error
C4430: missing type specifier - int assumed. Note: C++ does not support default
int
f:\program files\microsoft visual studio 8\vc\include\afxcom_.h(309) : warning
4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::_CIP' inst
ad
f:\program files\microsoft visual studio 8\vc\include\afxcom_.h(315) : warning
4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::~_CIP' ins
ead
f:\program files\microsoft visual studio 8\vc\include\afximpl.h(346) : warning
4005: '_countof' : macro redefinition
        F:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(397) : s
e previous definition of '_countof'



All in code I did not type.
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy