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 4: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 Zoltán Zörgő 220
1 Peter Leow 160
2 CPallini 120
3 Sergey Alexandrovich Kryukov 95
4 BillWoodruff 85
0 Sergey Alexandrovich Kryukov 9,428
1 OriginalGriff 6,901
2 Peter Leow 4,737
3 Zoltán Zörgő 4,349
4 CHill60 2,932

Advertise | Privacy | Mobile
Web03 | 2.8.150129.1 | Last Updated 12 Dec 2012
Copyright © CodeProject, 1999-2015
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