public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mark Mitchell <mmitchell@usa.net>
To: Louis Marascio <lmarasci@stevens-tech.edu>
Cc: egcs@cygnus.com
Subject: Environment variables....
Date: Sun, 07 Dec 1997 22:18:00 -0000	[thread overview]
Message-ID: <199712072219.WAA25876@quickstep.stanford.edu> (raw)
In-Reply-To: <XFMail.971208001311.lmarasci@stevens-tech.edu>

>>>>> "Louis" == Louis Marascio <lmarasci@stevens-tech.edu> writes:

    Louis> Well, the test program that I ran was indeed flawed.  I
    Louis> have now confirmed that setting CPLUS_INCLUDE_PATH does
    Louis> work.  I also successfully compiled the test program with
    Louis> two directories.  However, I am still in the dark as to why
    Louis> my project is failing.  Just to make sure I'm going to go
    Louis> check for mispellings again for the 100th time.  Thanks
    Louis> again for all the support.

Be careful that you don't do this in your Makefile:

CPLUS_INCLUDE_PATH = <blah>

foo.o: foo.cc
       export CPLUS_INCLUDE_PATH
       g++ -c foo.cc

This will not export CPLUS_INCLUDE_PATH for g++, as make runs each
line in a separate shell.

Instead, you should say:

  export CPLUS_INCLUDE_PATH; g++ -c foo.cc

or

  env CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH} g++ -c foo.cc

or some equivalent construct.  

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

-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu


      parent reply	other threads:[~1997-12-07 22:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-07 21:22 Louis Marascio
1997-12-07 21:28 ` Jeffrey A Law
1997-12-07 21:34   ` Louis Marascio
1997-12-07 22:18 ` Mark Mitchell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199712072219.WAA25876@quickstep.stanford.edu \
    --to=mmitchell@usa.net \
    --cc=egcs@cygnus.com \
    --cc=lmarasci@stevens-tech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).