Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! I have a problem with my compiler. I used Jgrasp and compiler of Borland.
When I compiling the coding, the error is " Unable to open include file 'roundrobin.h' " .
How can I resolve this problem?
Thank You.
Posted
Comments
fjdiewornncalwe 12-Dec-12 9:12am    
You could include the file in the cpp source file in question.
You'll need to provide more information in order to get a better answer.
Richard MacCutchan 12-Dec-12 9:28am    
Put that header file into your project directory, or add the directory name where it is located to your list of includes for the compiler.
chandanadhikari 12-Dec-12 10:45am    
just do what has beeen said above:plcae the file roundrobin.h in the folder where your code is and #include the file roundrobin.h in your .cpp file

1 solution

The simple answer of your question would be showing the proper path.

The question appear how paths are maintained in c++;
a. Common include folder
b. absolute path
c. current source path.

two way files are included
1. #include <file_name>
2. #include "file_name" // for case b and c

In case 1 compiler will search the file in assigned include directory
In case 2 compiler first look for the path you have given(if absolute path). But if not absolute then it would look in the current directory, if searching failed it would go for the include directory as case 1.

Now you will have to figure out what is your case
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900