a7e Subj : Re: Unable to open include file 'stdio.h' To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Mon Apr 25 2005 08:29 am It sounds as if the path to the compiler supplied header files is not set or not correctly set. Below I assume the compiler was installed into the default location of c:\borland\bcc55. If it was not, substitute the path used on your machine. Check that the file bcc32.cfg is located in c:\borland\bcc55\bin and one of the lines it contains is this: -Ic:\borland\bcc55\bin where the I is a capital 'i' and not a lower case 'L' or a one. If that is true then check if the directory c:\borland\bcc55\include does contain a file named stdio.h If it does not then the installation failed for some reason, possibly lack of disk space or a bad download. Please note that what you have are the command line tools from the C++ Builder compiler version 5. This newsgroup is for Borland C++, a different compiler. C++ Builder newsgroups all have the word 'cppbuilder' in their name. You also might find this page useful to dealing with the compiler: http://www.mulroy.org/howto.htm .. Ed > Brian Simms wrote in message > news:426cb0c9@newsgroups.borland.com... > Hi everybody! > > I am just learning C and have a problem with my first simple (!) > program! I was wondering if someone could help me find a solution. > > Here is the source code for you to analyse and see where I have > screwed up: > > #include > int main() > { > printf("Hello World\n"); > return 0; > } > > I am using the free version of Borlands C\C++ compiler (version 5.5) > and > have created the "bcc32.cfg" file (it is a text file created in > Notepad, is > that correct or did I screw that up?) also I have created an > "ilink32.cfg" > file (again as a text file via Notepad) These are both stored in the > following Directory: C:\Borlands\BCC55\Bin (as per the instructions > on > Borlands website). > > The above program is stored in the Directory "C:\mycodes" with the > following > filename: hello.c > > I open the Command prompt and change to the directory: C:\mycodes. > At the prompt (which now is "C:\mycodes>" I type in "bcc32 hello.c" > after > which I get the following message: > > Borland C++ 5.5.1 for Win32 Copyright 1993, 2000 Borland > hello.c: > Error E2209 hello.c 1: Unable to open include file 'stdio.h' > Warning W8065 hello.c 4: Call to function 'printf' with no prototype > in > function main > *** 1 errors in Compile *** > > Any ideas as to what I am doing wrong? I thank you all in advance > for any help you offer! . 0