当我包含CS50库时使用make编译时出现问题?

时间:2020-11-03 22:40:41

标签: ubuntu makefile clang cs50

我已经安装了 CS50库 Ubuntu 20.04 中 这段代码只是看它是否有效 c没有问题 但是当使用make时,它不会自动链接库,因此出现此错误- 我正在使用Visual Studio代码

if ($stmt->execute()) {
    return json_encode(array("success" => true));
}
$stmt->close();

出场

#include <stdio.h>
#include <cs50.h>

int main(void)
{
    string d = get_string("what is your name: ");
    printf("Hello, %s\n ",d);
}

使用 make

时如何使其自动链接库

0 个答案:

没有答案
相关问题