Click here to Skip to main content
12,702,599 members (33,212 online)
Rate this:
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 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

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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 12 Dec 2012
Copyright © CodeProject, 1999-2017
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