c++ - Statically link the libcurl library to my project (a dll) in Visual Studio 2013 -
c++ - Statically link the libcurl library to my project (a dll) in Visual Studio 2013 -
so i've been trying statically link libcurl library project past day , i'm literally pulling hair out. everywhere on net different instructions given , none seem work. i've never statically liked library before have (for sake of keeping things organized).
so project .dll file, requires libcurl library function. i've managed build libcurl.lib file libcurl source, have no thought need properties of dll project. i've tried adding "additional library directories", "additional include directories", "additional dependencies" without success. configurations seem work, in end still doesn't link statically, dynamically. oh, , i'm using visual studio 2013.
does have experience statically linking libcurl? help much appreciated. thanks!
after lot of experimenting figured out: had (for else experiencing these issues):
open properties go configuration properties -> vc++ directories add location of curldownload/lib folder "library directories" go configuration properties -> c/c++ -> general add location of curldownload/include folder "additional include directories" go configuration properties -> linker -> input add "additional dependencies": libcurl.lib;ws2_32.lib;wldap32.lib;advapi32.lib;kernel32.lib;comdlg32.lib add "libcmt.lib" "ignore specific default libraries"and compiled. hope helped!
c++ visual-c++ libcurl static-linking
Comments
Post a Comment