public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Seyran Avanesyan" <seyran.avanesyan@tanner.com>
To: "Eljay Love-Jensen" <eljay@adobe.com>,
		"GCC-help" <gcc-help@gcc.gnu.org>
Subject: RE: Different working folder for a C/C++ source file
Date: Wed, 20 Aug 2008 08:36:00 -0000	[thread overview]
Message-ID: <D66102A43110FC488698F1C3B605E93108F05CC8@exchange01.tanner.com> (raw)
In-Reply-To: <C4D09AEB.7ECC%eljay@adobe.com>

Thanks, that's a nice solution, but unfortunately I forgot to mention
that I'm compiling under Windows Vista 64-bit.

I've got another solution by using '#line' preprocessor directive to
correct paths in error messages.
And using additional `-I' switch on the command line for /BBB folder.

But I was thinking about some kind of command line switch to do that at
once.


-----Original Message-----
From: Eljay Love-Jensen [mailto:eljay@adobe.com] 
Sent: Tuesday, August 19, 2008 1:45 PM
To: Seyran Avanesyan; GCC-help
Subject: Re: Different working folder for a C/C++ source file

Hi Seyran,

Try this:

cd /AAA
for FILE in /BBB/*
do
  if test ! -e $FILE
    ln -s $FILE
  fi
done
g++ -c -o real.o real.cpp

HTH,
--Eljay

      reply	other threads:[~2008-08-20  4:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 20:45 Seyran Avanesyan
2008-08-19 22:05 ` Eljay Love-Jensen
2008-08-20  8:36   ` Seyran Avanesyan [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=D66102A43110FC488698F1C3B605E93108F05CC8@exchange01.tanner.com \
    --to=seyran.avanesyan@tanner.com \
    --cc=eljay@adobe.com \
    --cc=gcc-help@gcc.gnu.org \
    /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).