0
即时通讯安装systemC在visual studio 2015,在我包括我只使用#include“systemc.h”当我调试我得到这个问题“得到不是一个成员STD”为解决这得益于systemC安装visual studio 2015 visual studogets不是标准版的成员
任何帮助包括 “systemc.h”
#define _CRT_SECURE_NO_WARNINGS
_CRT_SECURE_NO_WARNINGS
// 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);
}