Questions tagged [include-path]

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.

897 questions
228
votes
11 answers

PHP - Failed to open stream : No such file or directory

In PHP scripts, whether calling include(), require(), fopen(), or their derivatives such as include_once, require_once, or even, move_uploaded_file(), one often runs into an error or warning: Failed to open stream : No such file or…
Vic Seedoubleyew
  • 9,888
  • 6
  • 55
  • 76
189
votes
5 answers

What are the GCC default include directories?

When I compile a very simple source file with gcc I don't have to specify the path to standard include files such as stdio or stdlib. How does GCC know how to find these files? Does it have the /usr/include path hardwired inside, or it will get the…
Raxvan
  • 6,257
  • 2
  • 25
  • 46
95
votes
7 answers

python pip specify a library directory and an include directory

I am using pip and trying to install a python module called pyodbc which has some dependencies on non-python libraries like unixodbc-dev, unixodbc-bin, unixodbc. I cannot install these dependencies system wide at the moment, as I am only playing, so…
Cricri
  • 1,524
  • 3
  • 12
  • 17
67
votes
15 answers

Cannot find corecrt.h: $(UniversalCRT_IncludePath) is wrong

I've just installed Visual Studio 2015 on my working laptop with Windows 10. I've cloned a repository with a solution created with the same version of Visual Studio (update 3) on another PC, always with windows 10. When I try to build the solution…
Jepessen
  • 11,744
  • 14
  • 82
  • 149
64
votes
15 answers

Eclipse CDT: Symbol 'cout' could not be resolved

The error is as above. I have what should be all the necessary files include in the eclipse project: /usr/include/c++/4.6 /usr/include /usr/include/linux /usr/local/include etc. I tried std::cout and using namespace std; cout but it still says…
Jeff
  • 1,251
  • 1
  • 12
  • 22
59
votes
4 answers

How to make g++ search for header files in a specific directory?

I have a project (a library) that is subdivided into a few directories with code in them. I'd like to to have g++ search for header files in the project's root directory, so I can avoid different include paths for same header files across multiple…
corazza
  • 31,222
  • 37
  • 115
  • 186
32
votes
4 answers

Why do projects use the -I include switch given the dangers?

Reading the fine print of the -I switch in GCC, I'm rather shocked to find that using it on the command line overrides system includes. From the preprocessor docs "You can use -I to override a system header file, substituting your own version,…
32
votes
2 answers

How to append a path to PHP's include_path in .htaccess

Currently on my site I'm using statements like: include 'head.php'; include '../head.php'; include '../../head.php'; depending on how many nested folders deep I am. I'm sure there is a better way to do this. I'm convinced .htaccess is the solution,…
zildjohn01
  • 11,339
  • 6
  • 52
  • 58
31
votes
4 answers

calling include from an included file

So, examining this directory structure /include_one.php /include_two.php /directory/main_file.php Assume that I am in /directory/main_file.php and I call include('../include_one.php'); inside of include_one.php, to include include_two.php. Do I…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
29
votes
7 answers

PHP how to find application root?

I'm having problems with my include files. I don't seem to be able to figure out how to construct my URLs when I use require_once('somefile.php'). If I try to use an include file in more than one place where the directory structures are different, I…
anon445699
26
votes
5 answers

Use of external C++ headers in Objective-C

In my iOS project I need to use an external library written in C++. The C++ header files are all in one directory. I've added these C++ headers to my Xcode project, and also specified a header search path (in Build Settings). The issue is that…
meaning-matters
  • 21,929
  • 10
  • 82
  • 142
24
votes
4 answers

Java, How to add library files in netbeans?

I am new to the Netbeans IDE and Java. I have a java project that shows lot of compilation errors: can not import "org.apache.commons.logging.Log" Can somebody please help me with these errors, How do I add library files in Netbeans IDE?
kiddo
  • 1,596
  • 7
  • 31
  • 60
23
votes
5 answers

Getting "Cannot open include file: 'atlbase.h': No such file or directory" error

I am swapping machines (between two Windows 8.1 laptops) and have just loaded the project I'm working on from TFS. On one machine it compiles, on the other it does not and gives the first error error C1083: Cannot open include file: 'atlbase.h': No…
dumbledad
  • 16,305
  • 23
  • 120
  • 273
23
votes
8 answers

what does it mean "(include_path='.:/usr/share/pear:/usr/share/php')"?

I have file structure on EC2 like : but facing some file referencing problem. index.php -db -config.php -cron -cron1.php I have tried file referencing as: `require_once (dirname(__FILE__).'/db/config.php');` `require_once…
ketul shah
  • 413
  • 2
  • 7
  • 17
22
votes
1 answer

how to set include paths with autotools

I'm working on a C++ project that uses autoconf & automake, and I'm struggling to correctly set up the include paths in *CPPFLAGS. I've read about 3 hours worth of documents, and I can't figure it out yet. I'm not looking for a hack, but for the…
Matei David
  • 2,322
  • 3
  • 23
  • 36
1
2 3
59 60