RE: g++ default options/flags

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

 



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 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