Jump to content

SC 2.3.3, Visual Studio 2017: Exception thrown


Recommended Posts

I have successful installation of SystemC 2.3.3 on Visual Studio 2017.

All the enclosed examples compile and run successful.

However, when I create a simple example (listed here: https://www.edaplayground.com/x/5UHA, un-comment lines 4 and 5 in testbench.cpp ), it throws an exception.

The exception is thrown at line:


And the exception thrown is


    if ( dynamic_cast<sc_module*>(host_p) != 0 && sc_is_running() )
        report_error( SC_ID_MODULE_METHOD_AFTER_START_, "" );
        sc_abort(); // can't recover from here

in file "sc_method_process.cpp".

The example runs okay on the EDA Playground, which I believe uses g++.

Any tips to resolve this on VS2017?

Thank you.

Link to comment
Share on other sites

  • 2 years later...

I'm in a similar situation, but I couldn't even get the examples to run: compiler couldn't find the systemC include files. Should the build have updated the appropriate environment variable?

I don't know anything about running Visual Studio (usually run Linux but not possible in this case.) I saw in the install notes about setting an environment variable to point to the include files and libraries. Do I need to do this? I also found in Visual Studio about setting project sheets and such. Each thing I looked at seemed to be saying "this is the old way of doing this. Do this other instead." 

Running Windows 10, VS 2017. 


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