title: Symbols not found in architecture + linker command failed with exit code 1
body: <p>I have been cracking my head over this one. I've searched all over and all I seem to find are issues with the same error messages but involving either building complete iphone apps or dealing with header files, all sorts of stuff.</p>
  
  <p>I was just writing a simple C++ program, no header files except the typical iostream, stdlib.h and time.h. This is for a very simple college assignment, but I can't keep working because Xcode gives me this error that has nothing to do with the actual code (based on what I've read). I haven't messed with anything other than the actual .cpp file, I don't even know how I could've messed this up. I've done multiple assignments the same way and have never run into this issue before.</p>
  
  <p>Current code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;time.h&gt;
  
  
  using namespace std;
  
  //functions
  void funcion1(int matriz, int renglones, int columnas);
  void funcion2(int matriz, int renglones, int columnas);
  
  //variables
  int renglones=8;
  int columnas=8;
  int ** matriz = new int*[renglones];
  
  int main()
  {   
      //reservar columnas
      for (int i=0; i &lt; renglones; i++)
      {
          matriz[i] = new int[columnas];
      }
  
      srand(time(NULL));
      funcion1(**matriz, renglones, columnas);
      funcion2(**matriz, renglones, columnas);
  }
  
  void funcion1(int **matriz, int renglones, int columnas)
  {
      for (int y = 0; y &lt;= renglones; y++)
      {
          for (int x = 0; x &lt;= columnas; x++)
          {
              matriz[y][x] = rand() % 10;
          }
      }
  }
  
  void funcion2(int **matriz, int renglones, int columnas)
  {
      for (int y = 0; y &lt;= renglones; y++)
      {
          for (int x = 0; x &lt;= columnas; x++)
          {
              cout &lt;&lt; matriz[y][x] &lt;&lt; " ";
          }
          cout &lt;&lt; "\n";
      }
  }
  </code></pre>
  
  <p>Screenshot of error screen
  <img src="https://i.stack.imgur.com/nNimw.png" alt="Screenshot of error screen"></p>
  
  <p>EDIT: Fixed code below.</p>
  
  <pre><code>void funcion1(int **matriz, int renglones, int columnas)
  {
      for (int y = 0; y &lt; renglones; y++)
      {
          for (int x = 0; x &lt; columnas; x++)
          {
              matriz[y][x] = rand() % 10;
          }
      }
  }
  
  void funcion2(int **matriz, int renglones, int columnas)
  {
      for (int y = 0; y &lt; renglones; y++)
      {
          for (int x = 0; x &lt; columnas; x++)
          {
              cout &lt;&lt; matriz[y][x] &lt;&lt; " ";
          }
          cout &lt;&lt; "\n";
      }
  }
  </code></pre>