title: Missing function definitions with libcurl-devel on CentOS 6.6
body: <p>I am having trouble compiling my program which uses libcurl.</p>
  
  <p>The environment I am using is CentOS 6.6 on a VM, and I am getting errors which suggests that the library has either:</p>
  
  <ol>
  <li>not installed correctly or</li>
  <li>cannot be found.</li>
  </ol>
  
  <p>I did a</p>
  
  <ul>
  <li><code>sudo yum install libcurl</code> followed by a </li>
  <li><code>sudo yum install libcurl-devel</code> followed by a </li>
  <li><code>sudo yum update</code></li>
  </ul>
  
  <p>It seems that the <code>curl.h</code> has been put under <code>/usr/include/curl</code> which seems correct so I am unsure as to why this has occurred.</p>
  
  <p>It is worth noting that a test program with <code>#include &lt;curl/curl.h&gt;</code> is compiling.</p>
  
  <p>Also, when libcurl-devel is not installed (and only libcurl is), </p>
  
  <ul>
  <li>gcc complained it couldn't find <code>curl.h</code>, as expected, </li>
  <li>there was also no curl directory under <code>/usr/include/</code>, as expected,</li>
  <li>however libcurl did install a curl file under <code>/usr/bin/</code>, as expected.</li>
  </ul>
  
  <p>In Ubuntu I only had to install libcurl-openssl</p>
  
  <p>Some example gcc errors: </p>
  
  <pre><code>$gcc new.c -lcurl
  new.c: In function ‘main’:
  new.c:74: error: ‘CURLOPT_MAIL_FROM’ undeclared (first use in this function)
  new.c:74: error: (Each undeclared identifier is reported only once
  new.c:74: error: for each function it appears in.)
  new.c:81: error: ‘CURLOPT_MAIL_RCPT’ undeclared (first use in this function)
  </code></pre>