stdio.h file not found in cmd

i install turbo c++ in my windows 7
so when i install in c directory and also i set environment variable like this
c:\turboc4\tc\bin

and also i set command in turbo blue windows like that options-directories-and set c:\tc\include
c:\tc\lib
now when i open cmd and enter tcc c:\turboc4\tc\bin\hello.c
and then i enter hello.c
error shows
"Unable to open include file 'stdio.h'


any help


1
2
c:\tc\include
c:\tc\lib

should be
1
2
c:\turboc4\tc\include
c:\turboc4\tc\lib
YES I DO THAT BUT SAME ERROR
CHECK IMAGE
http://i.imgur.com/CH5WcGj.png

and another blue image .. in this imae writtens as c:\\tc\\\bgi


http://i.imgur.com/yxscw5m.png
Last edited on
any help please?
Does turbo C++ take include statements? If so, you could try tcc -I/tc/include c:\turboc4\tc\bin\hello.c.

You probably shouldn't put your code in the compiler directory.
I don't have time to mess with installing TCC right now, but it looks to me like you have done something to break the TCC structure.

You should not be placing your code in C:\tc\bin !!!

I recommend you uninstall TCC, completely, then reinstall it using the default setup. You don't need to mess with anything for TCC. If it is installed the way it wants to be, it can find everything it needs by itself.

Put your code in your own directory, like C:\Users\Capricorn\Programming\hello\

To use the command-line compiler from TCC, you'll have to have C:\tc\bin in your command PATH. But if you just want to use the IDE, you don't need to bother.


Also, once you compile your graphics program, you'll need to copy the correct .bgi file(s) into your program's directory so that initgraph() can initialize properly (without hardcoded paths).

And you may also want to get http://www.dosbox.com/ to run your BGI programs, since Windows may otherwise have a problem with them.

Good luck!
Topic archived. No new replies allowed.