gpt4 book ai didi

c++ - 无法使用 vs 2013 打开 systemc 库

转载 作者:行者123 更新时间:2023-11-28 05:40:06 29 4
gpt4 key购买 nike

我是 systemc 编程的新手。对于安装,I followed this tutorial to install and startup.我正在尝试构建一个简单的主程序。但是我收到错误

error LNK1104: cannot open file "systemc.lib".

现在通过简单的目录搜索,我找不到文件。但是,删除它似乎会造成更多损害。 According to this poste该教程适用于 vs2010,而我使用的是 vs2013,这应该不是问题。

我该如何前进。我应该怎么办。这是代码:

// Hello_world is module name
SC_MODULE(hello_world) {
SC_CTOR(hello_world) {
// Nothing in constructor
}
void say_hello() {
//Print "Hello World" to the console.
cout << "Hello World.\n";
}
};

// sc_main in top level function like in C++ main
int sc_main(int argc, char* argv[]) {
hello_world hello("HELLO");
// Print the hello world
hello.say_hello();
return(0);
}

最佳答案

从您的第二个链接来看,您没有库的原因很简单:因为您没有构建它。您应该拥有构建库的源文件。

关于c++ - 无法使用 vs 2013 打开 systemc 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37302459/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com