RE: Different working folder for a C/C++ source file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux