include-path

c_include_path vs ld_library_path

耗尽温柔 提交于 2019-12-05 12:17:55
On either Ubunutu 12.04 or Springdale 6.4, using gcc and g++, what's the difference between C_INCLUDE_PATH (or CPLUS_INCLUDE_PATH ) and LD_LIBRARY_PATH ? Is the LD one only used at run-time, and the other two only at compile-time? Since the INCLUDE and LIBRARY_PATH environment variables seem to be ignored by GCC on these operating systems, which should I set when constructing my ~/.bashrc file to make it as portable as possible (modulo changes in the actual paths) across modern Linux OSes? LD_LIBRARY_PATH is an environment variable which tells in which directories the dll loader should look

How to specify path to `.pxd` file in Cython

假如想象 提交于 2019-12-05 09:38:40
My project has the following directory structure: . ├── Makefile ├── pxd ├── pyx │ ├── Landscaping.pyx │ ├── Shrubbing.pxd │ └── Shrubbing.pyx └── setup.py However, if I move Shrubbing.pxd anywhere else, say, into pxd/ , I get the following error: Error compiling Cython file: ------------------------------------------------------------ ... import pyx.Shrubbing cimport Shrubbing ^ ------------------------------------------------------------ pyx/Landscaping.pyx:2:8: 'Shrubbing.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... import pyx

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

我与影子孤独终老i 提交于 2019-12-04 22:43:59
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 (($_SERVER['DOCUMENT_ROOT']).'/db/config.php');` but cron doesn't run.it gives error in mail as `PHP Warning: require_once(/db/config.php): failed to open stream: No such file or directory in /var/www/html/cron/cron1.php on line 3 Warning: require_once(/db/config.php): failed to open stream: No such file or directory in /var/www/html/cron/cron1.php on line 3 PHP Fatal error:

Visual studio 2010, PortAudio DLL compile and linking issues, C++

試著忘記壹切 提交于 2019-12-04 21:48:27
Hi stack overflow users. Error description: For a mini project I have decided to use the portaudio library (I use Windows 7 64-bit and C++): http://portaudio.com/ Before even using the library I had to build a .DLL file in another Visual Studio Project and then link the output to my own visual studio 2010 project (32-bit). I tried to use this simple piece of code: #include <iostream> #include <portaudio.h> using namespace std; void main() { cout << "Hello World!" << endl; cout << "Welcome to C++ Programming" << endl; } I get this error message: fatal error C1083: Cannot open include file:

Visual studio code C++ on Linux Manjaro: IncludePath issue

风流意气都作罢 提交于 2019-12-04 15:14:25
I am trying to configure my Visual Studio Code to developing C++ code on Linux Manjaro (last release), but I have a little bit of a problem. Under the green line I had this description: #include errors detected. Please update your includePath. IntelliSense features for this translation unit (/home/waski/myTest/myTest.cpp) will be provided by the Tag Parser. cannot open source file "stddef.h" (dependency of "iostream") In c_cpp_properties.json file, section Linux, I have this config: { "name": "Linux", "includePath": [ "/usr/include/c++/7.1.1", "/usr/include/c++/7.1.1/x86_64-pc-linux-gnu", "

How does include path resolution work in require_once?

两盒软妹~` 提交于 2019-12-04 09:03:01
问题 I was writing an web app in PHP, when I encountered a strange situation. To illustrate my problem, consider a web app of this structure: / index.php f1/ f1.php f2/ f2.php Contents of these files: index.php: <?php require_once("f1/f1.php"); ?> f1.php: <?php require_once("../f2/f2.php"); ?> f2.php: blank now when I try to open index.php in my browser I get this error: Warning: require_once(../f2/f2.php) [function.require-once]: failed to open stream: No such file or directory in /var/www

how to set include paths with autotools

爷,独闯天下 提交于 2019-12-04 07:59:57
问题 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 correct way to do this. Here is my conundrum. As I see it, there are 3 completely different sources for include paths: External libraries that must be installed along with my package, which are configured by configure --with-XXX=<PATH> . Within my

How To Get g++ to list paths to all #included files

北城以北 提交于 2019-12-03 15:51:52
I would like to have g++/gcc tell me the paths to everything non-system it is #include-ing in C++ build. Turns out, that is a tough search as Google mus-interprets it about ten different ways. I want these filenames and paths so I can add them to the search path for Exuberant CTAGS. We have a huge project and if I use ctags on the whole thing it takes about half an hour to generate the tags file and nearly as long for the editor to do a look-up. We use CMakeLisats to do the compiling. If there is a directive I can paste into the CMakeLists.txt, that would be extra wonderfulness. I don't really

How do I prevent a quoted include from searching the directory of the current source file?

谁说我不能喝 提交于 2019-12-03 15:34:00
问题 gcc provides the -I- option, for which -I directories preceding the -I- are searched for quoted includes ( #include "foo.h" ), and -I directories following the -I- are searched for bracketed includes ( #include <foo.h> ), as well as after the others for quoted includes. -I- has another very important effect. It removes the directory of the source file that the #include is in from the default search path. Normally a quoted include always searches the directory of the source file, and searches

how to #include third party libraries

一曲冷凌霜 提交于 2019-12-03 13:00:05
问题 I have built and installed a library called OhNet. After make install the corresponding header files of the framework have been installed under usr/local/include/ohNet . Now I want to use the Library in my C++ project (i am using eclipse) but when i try to include some header files, eclipse is not able to find the files. As far as i know eclipse should search for header files in these directories (/usr/include , /usr/local/include ,...) by default.... What do i have to do to use the library?