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
6
votes
1 answer
linking to musl with other headers from /usr/include
I am trying to compile a program with x11 and use musl for the c library. I still have glibc on my system. Musl is located at /usr/local/musl/include The glib headers are still in /usr/include
When I muild with
musl-gcc test.c
I get fatal error:…

Samuel
- 1,073
- 11
- 22
6
votes
2 answers
Header files are not found by GCC
Working with embedded C-projects. There are libraries, include files and so on - for micro controllers. No need for me to use GCC for a host machine and OS (Linux Mint 64 bit). As a rule...
But now I'm trying to compile mspdebug project from a…

drvlas
- 423
- 3
- 7
- 18
6
votes
2 answers
Include javascript from vendor/assets/javascripts
How do you include a javascript file located in vendor/assets/javascripts in a single view file (NOT in application.js) ?
Some kind of javascript_include_tag ? Please help me with syntax
I have tried the following and it doesn't…

Marco Prins
- 7,189
- 11
- 41
- 76
6
votes
2 answers
Eclipse Kepler CDT include external header files / Add External Include Path recursively ( with subfolders )
Hi I have a embedded C project and all the basic C libraries are stored in an external folder ( not in the workspace ). I can compile because the compiler knows where to look for this files, but Eclipse does not know that these files exist and I get…

Viktor Carlson
- 989
- 1
- 13
- 36
6
votes
3 answers
Qt creator: c++: undefined reference to Class::Function
I am creating two c++ projects in my Qt creator. The first is an Application project and the other is unit-test project. the two projects, separately, work fine. However, when linking the two together I face a little problem.
I am including…

hashDefine
- 1,491
- 6
- 23
- 33
6
votes
4 answers
Equal header file in different include paths
Say we have two header files:/directory1/A.hpp and directory2/A.hpp. The contents of those two headers are different!
Our build target A.cpp needs directory1 and directory2 as include paths, since there are other needed header files in both…

Juergen
- 3,489
- 6
- 35
- 59
5
votes
1 answer
clang says "cstdlib file not found"
On an almost default install of Ubuntu 11.04 I installed clang.
I am trying to compile this:
#include
int main(){
return 0;
}
g++ can deal with it just fine, but clang++ errors out: fatal error: 'cstdlib' file not found
Can someone…

Tarnay Kálmán
- 6,907
- 5
- 46
- 57
5
votes
2 answers
gcc -I and -L options don't seem to work
I am trying to compile a project in my system using qmake. Some dependencies of the project are not installed but reside in my home directory, more or less like this: libs files: /home/myusername/local/lib and my includes directory…

Sambatyon
- 3,316
- 10
- 48
- 65
5
votes
4 answers
What do they mean by "then in the quote directories"?
In page 8 of The C Preprocessor version 10.0.1 we have the following statement:
#include "file"
This variant is used for header files of your own
program. It searches for a file named file first in the directory
containing the current file,…

Belloc
- 6,318
- 3
- 22
- 52
5
votes
3 answers
Setting up G++ or ICC for mpi.h on Ubuntu
I have never done any major programing outside of VS08.
I am trying to compile a program called LAMMPS with either of the two relevant make files. One calls g++ and the other calls icc (Intel's compiler).
icc produces this error:
icc -O…

Mikhail
- 7,749
- 11
- 62
- 136
5
votes
3 answers
get parent folder paths with php
I am working on my first MVC framework, and want to define 4 constants for BASE_PATH, APP_PATH, LIB_PATH & PUBLIC_PATH. My file structure looks like this:
/
/app
/controllers
/models
/views
/config
/db
/lib
/public_html
/css
/js
…

Yev
- 2,051
- 9
- 27
- 46
5
votes
2 answers
Best way to include file in PHP?
I'm currently developping a PHP web application and I would like to know what is the best manner to include files (include_once) in a way where the code it is still maintanable. By maintanable I mean that if I want to move a file, It'd be easy to…

Jean-Philippe Leclerc
- 6,713
- 5
- 43
- 66
5
votes
2 answers
Is it possible to exclude '.' (ie. current dir) from PHP's include path?
From perusing the comments at
http://php.net/manual/en/function.set-include-path.php , it seems to me that '.', or rather basename(__FILE__), is always implicitly added to PHP's include path. Is it at all possible to bypass this path?
In my work…

Emanuel Landeholm
- 1,396
- 1
- 15
- 21
5
votes
1 answer
cpplint.py & cmake: how to specify include files
Assume I have a project of the following directory structure:
myproject
├── .git [...]
├── CMakeLists.txt
└── src
├── CMakeLists.txt
├── foo.cc
└── foo.h
If in src/foo.cc I include the header file like #include "foo.h" and then run…

Georg P.
- 2,785
- 2
- 27
- 53
5
votes
1 answer
How to debug C++ code on VSCode? MacOS
I have downloaded the C++ extension and this is my launch.json file.
What should I need to do to debug it? I keep having this error.
Is it possible to debug C++ code on MacOS? Anything I should add/download/create first?
Update :
Here is what I…

Student
- 432
- 2
- 10
- 30