title: Troubling Including libcurl in Eclipse C++ Project
body: <p>Hi I am having trouble configuring an Eclipse C++ (32bit) project to use libcurl. I am using MinGW. I am on a 64bit windows OS. I have done the following so far:</p>
  
  <ul>
  <li>Add libcurl.lib to the Library to the project's Libraries</li>
  <li>Add the path of libcurl.lib to the Library Paths</li>
  <li>Add the path to the curl header files to the Includes section</li>
  <li>In my source file, I included "curl/curl.h"</li>
  </ul>
  
  <p>However, I am seeing the following message:</p>
  
  <pre><code>Info: Internal Builder is used for build
  g++ "-LC:\\projectsrc\\Network\\curl-7.34.0-win32\\lib" "-LC:\\projectsrc\\Network\\curl-7.34.0-win32\\dlls" "-LC:\\projectsrc\\Network\\curl-7.34.0-win32\\bin" -o TestLibCurl.exe "src\\TestLibCurl.o" "-lC:\\projectsrc\\Network\\curl-7.34.0-win32\\lib\\libcurl.lib" 
  c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lC:\projectsrc\Network\curl-7.34.0-win32\lib\libcurl.lib
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  
  <p><em>UPDATE</em></p>
  
  <p>Below is the sample source</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;curl/curl.h&gt;
  #include &lt;curl/easy.h&gt;
  
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
       cout &lt;&lt; "test" &lt;&lt;&lt; endl;
       return 0;
  }
  </code></pre>
  
  <p>Below is a screenshot of where I added the include path and the library file:</p>
  
  <p><img src="https://i.stack.imgur.com/wPt7N.jpg" alt="enter image description here"></p>
  
  <p>For your reference, I have uploaded my sample C++ eclipse project to dropbox here:
  <a href="https://www.dropbox.com/s/2jowlkz6qypqe9g/TestingLibCurl.zip" rel="nofollow noreferrer">https://www.dropbox.com/s/2jowlkz6qypqe9g/TestingLibCurl.zip</a></p>
  
  <p>The project file includes main.cpp, the libcurl.lib file, the libcurl header files, and the eclipse project setting files (.cproject, .project, .settings)</p>