Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++
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 12-Dec-12 3:05am
Marcus Kramer at 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 at 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 at 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 625
1 OriginalGriff 285
2 George Jonsson 225
3 CPallini 210
4 Fredrik Bornander 150
0 OriginalGriff 5,835
1 Sergey Alexandrovich Kryukov 5,263
2 CPallini 4,750
3 George Jonsson 3,227
4 Gihan Liyanage 2,487

Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 12 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100