Use system c under visual studio 2013 express
Download system c from
here: http://www.accellera.org/downloads/standards/systemc
The file is named systemc-2.3.0.tgz
but it seems that I can only unzip under windows. Once copied to Linux system,
need to make sure I changed “chmod +x …” for configure files, also need to make
everything writable. Then follow the
install instruction step by step, it is all done.
For windows
platform, find the directory called C:\work\systemc\systemc-2.3.0\msvc80, and
use VS2013 to open the solution file, and choose to upgrade. The project won’t
compile because of the following error: The C++ Standard Library forbids
macroizing keywords. Enable warning C4005 to find the forbidden macro.
This is caused by sc_cmnhdr.h file definition
for a workaround for MSVC6.0. need to replace the following line #define for if(
false ); else for
With this:
#if defined(_MSC_VER) && (_MSC_VER == 1200)
#define for if( false ); else for
#endif
Then the project should
compile.
Then in windows we
can define environment variable SYSTEMC as C:\work\systemc\systemc-2.3.0
And set my own
project files to use the following include file and library directories:
$(SYSTEMC)\src
$(SYSTEMC)\msvc80\systemc\debug

0 Comments:
Post a Comment
<< Home