yosri ben salah Posted May 3, 2017 Report Share Posted May 3, 2017 hi, i want to install systemC on visual studio 2015, i did all step in this tuto but when i compile this hello world example // All systemc modules should include systemc.h header file #include "systemc.h" // 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); } it displays problem "" not found stdafx.h and namespace std is not a member of gets , i want to ask there a difference between visaul studio version, and how can i solve this problem thanks Quote Link to comment Share on other sites More sharing options...
kartikkg Posted May 3, 2017 Report Share Posted May 3, 2017 Remove the include line stafx.h, as far as the differences are considered between Visual Studio and Linux certain header files will be different between them. yosri ben salah 1 Quote Link to comment Share on other sites More sharing options...
yosri ben salah Posted May 3, 2017 Author Report Share Posted May 3, 2017 i remove it but no things was changed, also i turn of precompiled stdafx.h in project properties but i does not resolve the problem, it displays std is not a member gets Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted May 3, 2017 Report Share Posted May 3, 2017 Try using the current public review release of SystemC 2.3.2 (see the following announcement): This version has been tested successfully on Visual Studio 2015. Hope that helps, Philipp Quote Link to comment Share on other sites More sharing options...
deeku Posted May 4, 2017 Report Share Posted May 4, 2017 I think the issue is related to visual studio project settings. When the new project is created you have to select Empty project (with precompiled header as disabled). Check if you are doing the same (video time 2:01). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.