From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28971 invoked by alias); 20 Aug 2008 04:19:00 -0000 Received: (qmail 28963 invoked by uid 22791); 20 Aug 2008 04:19:00 -0000 X-Spam-Check-By: sourceware.org Received: from mail01.tanner.com (HELO mail01.tanner.com) (70.137.39.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 20 Aug 2008 04:18:25 +0000 Received: (qmail 27722 invoked from network); 20 Aug 2008 04:18:23 -0000 Received: from unknown (HELO exchange01.tanner.com) (192.168.104.27) by mail01.tanner.com with SMTP; 20 Aug 2008 04:18:23 -0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Different working folder for a C/C++ source file Date: Wed, 20 Aug 2008 08:36:00 -0000 Message-ID: In-reply-to: References: From: "Seyran Avanesyan" To: "Eljay Love-Jensen" , "GCC-help" X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00194.txt.bz2 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]=20 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