我目前正在使用Windows上的CLion学习C语言,因此我从使用cURL的非常简单的程序开始。
我终于成功地使用CMake将库包含在我的代码中,如以下问题所示: 如何在Windows上链接动态生成的cmake文件?
现在,该代码将正确生成。
问题是,当我编写curl_easy_init()时,程序输出的输出带有异常的退出代码,而该异常代码未在cURL docs中引用,并且打印功能无法正常输出。
#include <stdio.h>
#include <curl/curl.h>
int main(void) {
printf("Hello world!\n");
CURL *curl;
CURLcode res;
curl = curl_easy_init(); // Line that changes program
return 0;
}
Run Code Online (Sandbox Code Playgroud)
每当编写该可怕的行时,程序就不再输出旧的“ Hello World!”。退出代码为零,则输出以下代码:
Process finished with exit code -1073741515 (0xC0000135)
Run Code Online (Sandbox Code Playgroud)
那个退出代码到底是什么?
任何信息都非常感谢。