2017-05-03 82 views
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); 
} 

回答

0

只是注释掉该行

using std::gets; 
在systemc.h

,因为的std ::得到已被弃用和h在vs2015中已被删除。

相关问题