Jump to content

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

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

Link to comment
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).

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...