title: G++ compiler: option -s is obsolete and being ignored C++
body: <p>I'm trying to compile and strip a very simple programm in C++ with the g++ compiler (4.6.0 on Mac OSX). But while compiling i get an warning.</p>
  
  <hr>
  
  <p>source code:</p>
  
  <pre><code>#include &lt;/usr/local/Cellar/gcc/4.6.0/gcc/include/c++/4.6.0/iostream&gt;
  
  int main(){
      std::cout &lt;&lt; ("Hello World\n") ;
  }
  </code></pre>
  
  <p>Terminal code:</p>
  
  <pre><code>g++ hello.cc -Wall -std=c++0x -s
      /* or an alternative: */
  g++ hello.cc -Wall -std=c++0x -o test -Wl,-s
  </code></pre>
  
  <p>Compiler warning: </p>
  
  <pre><code>ld: warning: option -s is obsolete and being ignored
  </code></pre>
  
  <hr>
  
  <p>Somebody any idea's about this weird warning? </p>
  
  <p>Edit:</p>
  
  <p>The weird thing is the size <strong>does</strong> decrease when using the -s flag, the decreases from 9,216 bytes to 9,008. </p>
  
  <p>However when i use the following the size decreases to 8,896 bytes.</p>
  
  <pre><code>cp hello hello_stripped
  strip hello_stripped
  </code></pre>