Jump to content
yosri ben salah

systemC on visual studio 2015

Recommended Posts

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

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×