Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting LibCurl to work with Visual Studio 2013
    primarykey
    data
    text
    <p>I am having trouble getting LibCurl to work with Visual Studio 2013. I downloaded the current version (curl-7.33.0) and tried following the instructions I found on this site: <a href="http://quantcorner.wordpress.com/2012/04/08/using-libcurl-with-visual-c-2010/" rel="noreferrer">Using LibCurl with Visual 2010</a></p> <p>But I can't find <strong>curllib.lib</strong> in the folder I downloaded. And I am still getting errors: <img src="https://i.stack.imgur.com/QjfdD.png" alt="enter image description here"></p> <p>After searching the internet for more help. I now get these error messages. There appears to be a problem with linking to libcurl.lib? </p> <p><img src="https://i.stack.imgur.com/MoWfA.png" alt="enter image description here"></p> <p>This is what I have configured: <img src="https://i.stack.imgur.com/o7nXr.png" alt="enter image description here"></p> <hr> <p><img src="https://i.stack.imgur.com/xjpk3.png" alt="enter image description here"></p> <p>Inside /lib I have <strong>libcurl.lib</strong> and <strong>libcurl.dll</strong></p> <hr> <p><strong>UPDATE</strong></p> <p>I downloaded this release for Win32 MSVC: <a href="http://curl.haxx.se/download.html#Win32" rel="noreferrer">http://curl.haxx.se/download.html#Win32</a> After adding the libcurl libraries and successfully compiling, I am now getting this error message:</p> <pre><code> The application was unable to start correctly (0xc000007b). Click OK to close the application. </code></pre> <p>Here is the sample code I am trying to run:</p> <pre><code>#include &lt;iostream&gt; #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> <hr> <p><strong>FINAL UPDATE</strong></p> <p>I believe I have gotten LibCurl to work with Visual Studio 2013 now. Persistence ftw! Although, after spending hours trying to solve these error messages, I am a little hesitant at saying everything is working fine now. That is why I am putting a bounty on this question to get <em>clear and concise</em> instructions on getting LibCurl to work with Visual Studio 2013. </p> <p>This is what I did to get it to work:</p> <ol> <li><p>First, download the Win32 MSVC package here: <a href="http://curl.haxx.se/download.html#Win32" rel="noreferrer">http://curl.haxx.se/download.html#Win32</a> For these instructions sake, let's say you downloaded to C:\LibCurl</p></li> <li><p>Start a new project in Visual Studio. Go to Project|Project Properties|VC++ Directories|Include Directories| Add the path to the include directory inside the downloaded package. (C:\LibCurl\include)</p></li> <li><p>Next, go to Project|Project Properties|Linker|General|Additional Library Directories| Add the path to the lib directory. (Where curllib.dll is located)</p></li> <li><p>Then, go to Project|Project Properties|Linker|Input|Additional Dependencies| And add <strong>curllib.lib</strong></p></li> <li><p>Now if you compile a test program, you will likely get the message saying libsasl.dll is missing. You will need to download this file and put it in the same directory as your build. I used 7-Zip to extract <strong>libsasl.dll</strong> from <strong>OpenLDAP for Windows</strong>. <a href="http://www.userbooster.de/en/download/openldap-for-windows.aspx" rel="noreferrer">OpenLDAP for Windows</a></p></li> </ol> <p>This is the result of my test code from above: <img src="https://i.stack.imgur.com/B3t3v.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload