about LD_INCLUDE_PATH
Hi,
a couple of questions about LD_INCLUDE_PATH. I export it from my "/root/.bashrc" 1/When gcc is executed, is LD_INCLUDE_PATH automagically included in the compilation process or must i do "-I${LD_INCLUDE_PATH}"? 2/I have tried the "-I${LD_INCLUDE_PATH}" solution, but although i DO include ALL corresponding paths, compiler still complains about "a couple" of missing header files. The problem is solved if i separately do "-Ipath" for the corresponding directories. Possible causes? Thank you |
LD usually refers to the linker, so it seems odd to call the place where you put your includes as the LD_INCLUDE_PATH.
Quote:
Quote:
|
1. The "-L" switches you specify (at link time) can be overridden by the $LD_LIBRARY_PATH you specify (at runtime).
2. The converse isn't true: $LD_LIBRARY_PATH is *not* used during linking. 3. Compile-time includes ("-I") have nothing to do with linking. "-I" is completely unrelated to either "-L" or "$LD_LIBRARY_PATH". |
First thnx everybody. Sorry paulsm, but my small experience makes it difficult to understand
Quote:
Quote:
Quote:
|
Quote:
Quote:
So to sum up:
|
All times are GMT -5. The time now is 10:01 PM. |