我试图将libcurl包含到我的C++项目中,因此我构建.lib文件将其放在名为“curl/lib”的文件夹中,然后将所包含的文件夹从卷曲文件夹我下载到“卷曲/”(我从网上教程得到的...)。然后,我将创建的“curl”文件夹复制到我的程序所在的目录中,然后在我的项目属性中将卷曲路径添加到“Additional Include Directories”和“C++/General”和“Linker/General”。然后我创建了一段使用curl.h代码的代码(包括那个代码)。编码看起来很好,没有错误,但后来我建立了我的项目,我得到了一个“致命的错误LNK1120:6未解决的外部”错误和一堆“LNK 2019” - 错误,告诉我未解决的符号在哪里:试图添加libcurl作为参考的问题
1>dll_load.obj : error LNK2019: unresolved external symbol curl_easy_cleanup referenced in function "void __cdecl lel(void)" ([email protected]@YAXXZ)
1>dll_load.obj : error LNK2019: unresolved external symbol curl_easy_strerror referenced in function "void __cdecl lel(void)" ([email protected]@YAXXZ)
1>dll_load.obj : error LNK2019: unresolved external symbol curl_easy_perform referenced in function "void __cdecl lel(void)" ([email protected]@YAXXZ)
1>dll_load.obj : error LNK2019: unresolved external symbol curl_easy_setopt referenced in function "void __cdecl lel(void)" ([email protected]@YAXXZ)
1>dll_load.obj : error LNK2019: unresolved external symbol curl_easy_init referenced in function "void __cdecl lel(void)" ([email protected]@YAXXZ)
1>dll_load.obj : error LNK2019: unresolved external symbol curl_global_init referenced in function "void __cdecl lel(void)" ([email protected]@YAXXZ)
人知道什么,我丢失或如何,我可以解决这个问题,因为它真的很烦人,停止我未能完成我的项目!任何帮助是极大的赞赏!
您是否告诉链接器链接libcurl? –
@KennyOstrom我该怎么做? – Dafuqisthis