An include path is a set of directories that contain headers or library files that should be accessed with no prefixed directory. Include paths normally include the location of the standard library, locations of third party libraries, and locations of system headers.
Questions tagged [include-path]
897 questions
-1
votes
1 answer
php require_once includes files relative to file instead of working directory
I have some problems with including files relatively. The problem isn't that require_once can't find a file, but the fact that it CAN find a file in a place where the file isn't. I have stripped down the problem to three small classes.
So this is my…

David
- 1,227
- 12
- 23
-1
votes
1 answer
PHP: Relative path doesn't work
I want to include a file called script.php this file is in the includes folder.
When I do this:
include('/includes/script.php');
There is nothing happend, I get a error message that the file is not found. But when I do…

Thom
- 591
- 4
- 12
- 30
-1
votes
1 answer
php include complete directory
I’m using phplist as a newsletter program within a site. Phplist works in a fashion similar to running a site within a site, meaning it has it’s own css, js, image folders etc. I am trying to include() the index.php from its main folder on my outer…

JSP254
- 39
- 1
- 9
-1
votes
1 answer
Including H files in other programs x
For class I made a struct called time and the h.which looked something like this
struct Time{
Time() : hours(0),minutes(0),seconds(0),ticks(0){}
int hours, minutes, seconds, ticks;
};
Time convert (clock_t t, Time &time);
std::string…

B4dmonkey
- 112
- 1
- 2
- 12
-1
votes
1 answer
Add new library in VC++
I have just downloaded a library and I want to use it in my programs in C++ (Visual studio 2012).
In searching "How to add a library to VC++ project" I found 3 main action should be done:
"Right click on project name in solution explorer/ select…

Ahmad Hoghooghi
- 145
- 10
-1
votes
4 answers
Can i put a PHP variable inside a PHP include?
I am unfamiliar with PHP; I suspect this is an easy question. Our web designer is out of town and I need to fix something on one of our web sites.
Basically, I want to be able to use a variable as part of a URL that is being called into a document.…

Penfold0101
- 87
- 1
- 1
- 9
-1
votes
2 answers
How PHP require file logic works?
File tree;
boot.php
panel/index.php
panel/inc/start.php
panel/inc/functions.php
Process:
index.php; requires 'inc/start.php'
start.php; requires '../boot.php' and 'functions.php'
(require_once 'x.php' used)
Everything works when index.php…

previous_developer
- 10,579
- 6
- 41
- 66
-1
votes
2 answers
Why do I still need to declare require_once('../config.php') in index.php?
I have database.php that already has require_once('../config.php') inside it.
I don't understand why I still need to put both require_once('../config.php') and require_once('../database.php') in my index.php instead of…

arjay0601
- 475
- 2
- 8
- 16
-1
votes
2 answers
A weird error while including file
I'm trying to include file on ubuntu but I have a weird problem.
The including file is in this path - /var/www/cms-dev/corefiles/classes/config.hp
The file i'm trying to include is this file - /var/www/cms-dev/corefiles/lang.php
For some reason,…

Yehonatan
- 3,168
- 7
- 31
- 39
-1
votes
1 answer
PHPUnit Path problems
I am writing a ZF application. I had some abstract parent classes in a library directory. Netbeans could generate test skeletons for the child classes no problems, and I could run the tests no problem.
Later on I decided to move the abstract…

DatsunBing
- 8,684
- 17
- 87
- 172
-1
votes
3 answers
std::string could not be resolved in eclipse ubuntu
I've tried searching the problem and even saw a similar question in:
"string could not resolved" error in Eclipse for C++ (Eclipse can't resolve standard library)
but his solution of installing mingw did not work. (what is msys? aptitude didn't find…

CodeMonkey
- 11,196
- 30
- 112
- 203
-2
votes
0 answers
Visual Studio Code on Ubuntu 22.04 doesn't find my header files
I'm trying to code a project in C++ using Visual Studio Code on Ubuntu 22.04.
I need to include a header file that is located in a folder full of other header files and sub-directories (main folder name "depends").
I wrote #include "polar.h" Visual…

dod0bob
- 1
- 1
-2
votes
1 answer
GCC compiler does not search sub-directories when looking for header files
I can't make gcc compiler recognize complex paths in "includes".
Here's my toy "main.cpp" file (note the sub-directory in the include statement):
#include "sub/testlib.h"
int main()
{
testlib(6);
return 0;
}
Here's the path to the file…

Leonid Zakirov
- 21
- 1
- 7
-2
votes
1 answer
Cannot access GLFW/glfw3.h in Visual Studio 2019
I am trying to develop a game using GLFW and C++, but to do this I need to add add a new "Include Directory", how would I go about this?
So far, I have tried to add it to "Configuration Properties/VC++ Directories/Include Directories" and to…

AncientScarab
- 11
- 1
- 1
-2
votes
1 answer
How add include path to CMake?
I tried to add paths using:
export PATH=
export CPPFLAGS='-I'
I tried to run make using the make -I=. But make still does not see hpp files.
CmakeLists:
cmake_minimum_required(VERSION…

DR.zarigan
- 23
- 1
- 6