title: LibCURL when used on Mac with C
body: <p>Basically, I'm trying to simply use libCURL to download a web site and I've been using this code: </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;curl/curl.h&gt;
  
  int main(void)
  {
    CURL *curl;
    CURLcode res;
  
    curl = curl_easy_init();
    if(curl) {
      curl_easy_setopt(curl, CURLOPT_URL, "http://google.com");
      res = curl_easy_perform(curl);
  
      /* always cleanup */ 
      curl_easy_cleanup(curl);
    }
    return 0;
  }
  </code></pre>
  
  <p>And getting this error: </p>
  
  <pre><code>Undefined symbols:
     "_curl_easy_perform", referenced from:
        _main in ccGyMZQR.o
    "_curl_easy_init", referenced from:
        _main in ccGyMZQR.o
    "_curl_easy_setopt", referenced from:
        _main in ccGyMZQR.o
    "_curl_easy_cleanup", referenced from:
        _main in ccGyMZQR.o
      ld: symbol(s) not found
      collect2: ld returned 1 exit status
  </code></pre>