title: Trouble importing dll library into CodeBlocks Linker
body: <p>I am trying to use libcurl for a simple application using CodeBlocks IDE. In Codeblocks IDE, after clicking on Build Options ==&gt; Linker Settings ==&gt; Link Libraries ==&gt; &quot;Add&quot; , the file browser only allows me to choose between *.a, *.so, *.lib, and *.dyl files. Why is it not allowing me to choose *.dll files? I downloaded the binary packages for Windows for libcurl and they all provide .dll files. This is what it looks like:</p>
  <p><img src="https://i.stack.imgur.com/FCGpY.jpg" alt="enter image description here" /></p>
  <p><strong>====UPDATE====</strong></p>
  <ol>
  <li><p>Hi I have now downloaded the following zip file for lib curl
  which includes CURL Source, DLL Files, and a .lib file. It can be
  found here: <a href="http://www.confusedbycode.com/curl/curl-7.34.0-win64.zip" rel="nofollow noreferrer">http://www.confusedbycode.com/curl/curl-7.34.0-win64.zip</a></p>
  <p>However, I am still having issues being able to compile my source
  code.</p>
  </li>
  <li><p>Below is my source code:</p>
  </li>
  </ol>
  <h1>include </h1>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &quot;curl/curl.h&quot;
  using namespace std;
  
  int main()
  {
      CURL *curl;
      CURLcode res;
  
      curl = curl_easy_init();
      if(curl) {
          curl_easy_setopt(curl, CURLOPT_URL, &quot;http://example.com&quot;);
          /* example.com is redirected, so we tell libcurl to follow redirection */
          curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
  
          /* Perform the request, res will get the return code */
          res = curl_easy_perform(curl);
  
          /* Check for errors */
          if(res != CURLE_OK)
              fprintf(stderr, &quot;curl_easy_perform() failed: %s\n&quot;,
                curl_easy_strerror(res));
  
          /* always cleanup */
          curl_easy_cleanup(curl);
  
      }
      return 0;
  }
  </code></pre>
  <ol start="3">
  <li>Below is a screen shot of my CodeBlocks IDE working directory:</li>
  </ol>
  <p><img src="https://i.stack.imgur.com/0cza1.jpg" alt="enter image description here" /></p>
  <ol start="4">
  <li>Below are screen shots of my build options for Linker/Compiler, and Linker Libraries:</li>
  </ol>
  <p><img src="https://i.stack.imgur.com/YPpWv.jpg" alt="enter image description here" /></p>
  <p><img src="https://i.stack.imgur.com/O24Rf.jpg" alt="enter image description here" /></p>
  <p><img src="https://i.stack.imgur.com/CrdIH.jpg" alt="enter image description here" /></p>
  <p>I am not sure what is wrong with the setup. It is having trouble building. It is returning the following error messages:</p>
  <p><img src="https://i.stack.imgur.com/QZQO9.jpg" alt="enter image description here" /></p>
  <p>Below is the latest Build Log:</p>
  <pre><code>-------------- Build: Debug in libcurl_c (compiler: GNU GCC Compiler)---------------
  
  mingw32-gcc.exe -Wall  -g    -IC:\Users\bbb\Desktop\libcurl_packages\confused_by_code\curl-7.34.0-win64\curl-7.34.0-win64\include  -c C:\Users\bbb\Desktop\workspace\libcurl_c\main.c -o obj\Debug\main.o
  mingw32-g++.exe  -o bin\Debug\libcurl_c.exe obj\Debug\main.o    C:\Users\bbb\Desktop\libcurl_packages\confused_by_code\curl-7.34.0-win64\curl-7.34.0-win64\lib\libcurl.lib 
  obj\Debug\main.o: In function `main':
  C:/Users/bbb/Desktop/workspace/libcurl_c/main.c:9: undefined reference to `_imp__curl_easy_init'
  C:/Users/bbb/Desktop/workspace/libcurl_c/main.c:11: undefined reference to `_imp__curl_easy_setopt'
  C:/Users/bbb/Desktop/workspace/libcurl_c/main.c:13: undefined reference to `_imp__curl_easy_setopt'
  C:/Users/bbb/Desktop/workspace/libcurl_c/main.c:16: undefined reference to `_imp__curl_easy_perform'
  C:/Users/bbb/Desktop/workspace/libcurl_c/main.c:19: undefined reference to `_imp__curl_easy_strerror'
  C:/Users/bbb/Desktop/workspace/libcurl_c/main.c:23: undefined reference to `_imp__curl_easy_cleanup'
  collect2.exe: error: ld returned 1 exit status
  Process terminated with status 1 (0 minutes, 1 seconds)
  6 errors, 0 warnings (0 minutes, 1 seconds)
   
  </code></pre>