title: Problems with iostream library and gcc
body: <p>I have tried to compile many times a small C++ program but it fails everytime I used gcc to compile.</p>
  
  <p>I'm using Cygwin64 and this is the code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string.h&gt;
  using namespace std;
  #define MAX 100
  
  using namespace std;
  
  #define MAX 100
  
  int main(){
      int n;
      cout&lt;&lt;"Caantidad de elementos a ingresar";
      cin&gt;&gt;n;
       if(n&lt;=0) {
          cout&lt;&lt;"Elementos ingresador no válidos"&lt;&lt;endl;
       } if(n&gt;MAX) {
          cout&lt;&lt;"La cantidad ingresada no es válida, Maximo "&lt;&lt;MAX&lt;&lt;" : " &lt;&lt;endl;
          return n;        
       }
  
  }
  </code></pre>
  
  <p>And the error is:</p>
  
  <blockquote>
    <p>$ gcc nuevo.cpp /tmp/ccurFCPF.o:nuevo.cpp:(.text+0x1c): referencia a
    `std::basic_ostream >&amp; std::operator&lt;&lt;
     > std::basic_ostream >&amp;, char const*)' sin definir</p>
  </blockquote>
  
  <p>I would appreciate your help</p>