This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Environment variable to pass in options?


>Sounds reasonable.  Why don't you try to put one into your environment
>from the shell, then trying to compile a simple program which includes
>something from that dir.  Start simple to make sure the basic feature
>works, then look at the bigger problem.

Nod, I did this and it still failed. Here are the results:

----
datahermit:~/src/test$ pwd
/home/tpm/src/test
datahermit:~/src/test$ ls -l
total 2
drwxr-xr-x   2 tpm      users        1024 Dec  7 23:28 inctest
-rw-r--r--   1 tpm      users          54 Dec  7 23:29 test.c
datahermit:~/src/test$ ls inctest/
test.h
datahermit:~/src/test$ export CPLUS_INCLUDE_PATH=/home/tpm/src/test/inctest
datahermit:~/src/test$ g++ test.c
test.c:1: inctest.h: No such file or directory
datahermit:~/src/test$ cat test.c
#include "inctest.h"

int main()
{
        cout << "Test";
}
datahermit:~/src/test$ 


- - - - -
Louis R. Marascio                  A.K.A Louis Armistead and Jim McCraken
Email: lmarasci@stevens-tech.edu   "We have plenty of psychological abuse 
ICQ: 4270107                        in stock" -- Ripped from jsm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]