title: Xcode linker command failed with exit code 1 c++
body: <p>I've written a simple series of functions. When I try to call the last function I get the "linker command" error. The syntax is correct but my program won't compile.  Am I missing something or is this an IDE issue?</p>
  
  <pre><code>    #include &lt;iostream&gt;
      #include &lt;cstdlib&gt;
      #include &lt;ctime&gt; 
      #include &lt;time.h&gt;
  
      using namespace std;
  
  
      // Function Prototypes
      int   numGen   ();
      int   questSol ();
      int   questAns ();
  
  
  int main() {
  
  // Store values of functions in variables
      int ans = questAns();
      int sol = questSol();
  
  
      if (ans == sol){
          cout &lt;&lt; "Very good! Press Y to continue" &lt;&lt; endl;
          questAns();
      } else {
          cout &lt;&lt; "Incorrect. Please try again" &lt;&lt; endl;
          cin &gt;&gt; ans;
          if(ans == sol){
              questAns();
          }
      }
  
  
      return 0;
  
  };
  
  //Generates two random numbers between zero and ten and returns those numbers
  int numGen () {
  
      srand(time(0));
      int one = rand() % 10;
      int two = rand() % 10;
  
      return one;
      return two;
  };
  
  //Takes in the random numbers, multiplies them, and returns that result
  
  
  int questSol (int one, int two) {
  
  
      int solution = one * two;
  
  
      return solution;
  }
  
  
  //Takes in random numbers, displays them in cout statement as question, receives and returns user answer to
  //question
  
  
  int questAns (int one, int two) {
  
      int answer;
  
      cout &lt;&lt; "How much is " &lt;&lt; one &lt;&lt; " times " &lt;&lt; two &lt;&lt; "? \n";
      cin &gt;&gt; answer;
  
  
      return answer;
  }
  </code></pre>