Press "Enter" to skip to content

Unable to Open Include file: Fix Turbo C Error

Tip Abstraction:  This tips fix the common error shows in Turbo C such that Unable to Open Include file, stdio.h, cos.obj, conio.h, etc

If you are a newbie in C / C++ programmer with Turbo C or you are using Turbo C in a new system, you may face many problems like converting small Turbo C window to larger in new Windows versions like Window 7.

These are some other errors you may face while using Turbo C/C++:

  • Linker Error: Unable to open file ‘C0S.OBJ’
  • Unable to open include file ‘STDIO.H’
  • Unable to open include file ‘CONIO.H’
  • Unable to open include file ‘IOSTREAM.H’ 
Unable to open include file stdio.h on trubo c

Here are the best solutions to above errors:

How to solve the errors: Unable to open include file ‘STDIO.H’, Unable to open include file ‘CONIO.H’ or Unable to open include file ‘IOSTREAM.H’

This error indicates, compiler can’t find or open the file ‘STDIO.H’ or ‘CONIO.H’ or ‘IOSTREAM.H’. Main reason of this error is the incorrect path to Turbo C header files. While you writing the code ‘STDIO.H’ or ‘CONIO.H’ or ‘IOSTREAM.H’, compiler will call that files, which is located with TC folder.Common location for header files is : C:/TC/INCLUDE

At first, you have to open above directory (or directory were you installed Tubo C) and ensure include files ‘STDIO.H’, ‘CONIO.H’ and ‘IOSTREAM.H’ are present in that directory (folder).

If you can’t find anyone these, just remove and reinstall your Turbo C in C drive. 

If you can see all above include files, then you have to correct the path for ‘INCLUDE’ directories on your Turbo C compiler.

For that:

  • Open you Turbo C/C++.
  • Click on ‘Options’ from title bar.
  • From given list, open option for ‘Directories’.
Turbo C options for directories

Now a directories window will open. In this window, you can see the path for include directories.

Here you have to ensure the path for include directories and original (installed) path for include folder are same. Default path for INCLUDE folder is “C:/TC/INCLUDE”. But if you are installed Turbo C on another location or if you moved the installed TC folder to another, then you have two choices to correct the path. One is move your installed TC folder to you C drive without making a new folder (Cut – Paste the TC to C drive). Or change the path of include directory to path of your (original installed) INCLUDE folder.

 (Example: D:/Software/Turbo C/ TC/INCLUDE). Be ensure the INCLUDE folder contains all include files like ‘INCLUDE.H’, ‘CONIO.H’ etc.

Turbo C include file directories path

How to Solve Linker Error: Unable to open file ‘C0S.OBJ’

This error is also due to the incorrect path of Library Directories. Default path for library is “C:/TC/LIB”. But if you are not installed Turbo C on another location or if you moved the installed TC folder to another, then you have two choices to correct the path. One is move your installed TC folder to you C drive without making a new folder. Or change the path of library directory to path of your (installed) library folder (Example: D:/Software/Turbo C/ TC/LIB). Be ensure the LIb folder contains all library files like ‘C0S.OBJ’, ‘C0T.OBJ’ etc

C Program Library directories path

After correcting these changes on your computer or Turbo C, you can use your compiler as normal for your C Programming.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *