2017-05-03 81 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中已被刪除。

相關問題