cURL błąd z dołączeniem biblioteki do projektu w VS2013

0

Postępuję zgodnie z instrukcjami na http://stackoverflow.com/questions/20171165/getting-libcurl-to-work-with-visual-studio-2013

First, download the Win32 MSVC package here: http://curl.haxx.se/download.html#Win32 For these instructions sake, let's say you downloaded to C:\LibCurl

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)

Next, go to Project|Project Properties|Linker|General|Additional Library Directories| Add the path to the lib directory. (Where curllib.dll is located)

Then, go to Project|Project Properties|Linker|Input|Additional Dependencies| And add curllib.lib

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 libsasl.dll from OpenLDAP for Windows. OpenLDAP for Windows

Gdy próbuję zbudować projekt pojawia się błąd linkera

1>LINK : fatal error LNK1104: cannot open file 'curllib.lib'

Problem w tym że takiego pliku curllib.lib nie ma w ogóle w folderze. Jest jedynie curllib.dll
Pobrałem najnowszą paczkę cURLA ze strony:
http://curl.haxx.se/download.html#Win32
konkretnie tą bo reszta to chyba tylko wersje .exe:
Win32 2000/XP zip 7.40.0 libcurl SSL Günter Knauf

Co robić?

0

Konsolka nugeta: Install-Package curl

0

Użyłem tego polecenia. Co ono właściwie zrobiło? Na pewno pobrało kilka rodzajów curla, ale czy wszystkie ścieżki do odpowiednich plików zostały dodane we właściwościach projektu czy muszę to zrobić ręcznie? Bo teraz gdy próbuję uruchomić testowy program pojawiają się błędy:

1>Source.obj : error LNK2019: unresolved external symbol __imp__curl_easy_strerror referenced in function _main
1>Source.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function _main
1>Source.obj : error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function _main
1>Source.obj : error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function _main
1>Source.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _main
1>c:\users\mm\documents\visual studio 2013\Projects\ConsoleApplication15\Debug\ConsoleApplication15.exe : fatal error LNK1120: 5 unresolved externals

1 użytkowników online, w tym zalogowanych: 0, gości: 1