error LNK2019: unresolved external symbol libcurl Visual studio

后端 未结 1 1882
迷失自我
迷失自我 2021-01-13 13:49

Yes, I am aware that this is a linker error to the libcurl.lib I assume? I\'ve tried downloading libcurl from a different source and put it in different places.

Thes

相关标签:
1条回答
  • 2021-01-13 14:49

    Working on Visual Studio 2013 using Static Library

    I got it to work now, thanks to some angel. Found this git repo: https://github.com/blackrosezy/build-libcurl-windows

    Ran the .bat which also generated static libraries like the downloads before didnt.

    How to:

    Run the .bat included in the repository.

    libcurl will be found in the thirdparty subfolder containing folders include and lib.

    Create a new Visual Studio Project

    Properties -> VC++ -> Add Directory thirdparty/include (the path)

    Properties -> VC++ -> Add Library thirdparty/lib/static-debug (the path)

    Properties -> C++ -> Preprocessor -> Add CURL_STATICLIB

    Linker -> General -> Additional Library Directories Library -> thirdparty/lib/static-debug (the path) Linker -> Input add: C:\xxx\xxx\xxx\build-libcurl-windows\third-party\libcurl\lib\static-debug\libcurl_a_debug.lib (the full path of the lib file)

    0 讨论(0)
提交回复
热议问题