View Single Post
  #5 (permalink)  
Old July 7th, 2016, 01:43 PM
dd2f dd2f is offline
Registered User
 
Join Date: Jul 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Roma Rosa
using Turbo C++, whenever i try to compile my prg, it gives me an error saying - ""Unable to open include file
Hi, it depends what kind of file you are unable to include. If it is one of the standard C++ files like:
Code:
#include <iostream.h>
then:
1. check if it is right typed (no errors in spelling)
2. check configuration in menu Options->Directories, it should contain right entry, for example if your Turbo C++ is installed in C:\TURBOC3\ the path in configuration window should start the same.

If it is a file that you created, for example "file.h", then it should be included like this:
Code:
#include "file.h"
(notice the quotation marks)
Or if it doesn't work, try full path, to this file, for example:
Code:
#include "C:\DIRECTORY_OF_YOUR_FILE/SUBDIRECTORY/file.h"
Sorry for my English.
Reply With Quote