Jump to content

Install SystemC on Visual Studio 2017

Recommended Posts

I am trying to install systemC on visual studio 2017 but it seems that I cannot find the guide for it. So I had to follow the guide of installing systemC on VS2010 :(  

In fact, I have got systemC.lib but when I configured the project for systemC, i.e, the project->property->C/C++->Code Generation->Runtime Library->balabalabala... finished all of them and build solutions, there are some errors. 

So...what should I do? Totally confused because I know nothing about VS =_=

PS: the guide is here






Link to post
Share on other sites

Starting with SystemC 2.3.2, the MSVC project files shipped with the package use the DLL-based runtime library.  Therefore it is not necessary (instead rather harmful) to select the statically linked runtime library in your application.

Secondly, you should not set the SC_SIGNAL_WRITE_CHECK environment variable to DISABLE (unrelated to your current issue, but suggested in the video above).

More instructions on using MSVC with SystemC can be found in the INSTALL file shipped with the proof-of-concept simulator.

Hope that helps,

Link to post
Share on other sites
  • 4 months later...

Do you provide a proper definition of "void sc_main(int argc, char* argv[])" in your application as entry point for your simulation? Have you made sure to not have a function main() defined at the same time? In the latter case you would need to call explicitly sc_elab_and_sim(argc, argv) to hand over control to SystemC for elaboration and simulation (which will include a call to sc_main()). Confer to IEEE Std 1666-2011 clause 4.3 for details.

Link to post
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...