This is the mail archive of the gcc-help@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]
Other format: [Raw text]

RE: g++ default options/flags


Hi kyp44,

Expounding upon Brian's response, here's how I've done exactly what you are asking to do.  I'm assuming a Unix-ish system.

Here are the steps I've done, verbatim (replace -Wall -Wextra with whatever you need):


cd ~
mkdir bin
cd bin
cat > g++ <<EOF
/usr/bin/g++ -Wall -Wextra "$@"
EOF
chmod a+x g++
PATH=~/bin:$PATH


Adjust as necessary.  Voila!

HTH,
--Eljay


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