spman
Advanced Member level 4
- Joined
- Aug 15, 2010
- Messages
- 113
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,061
Hi
I want to do simulation for systemc with modelsim. Version of my modelsim is SE 10.0c.
At first I got this error :
Then I found gcc 4.2.1 at https://sourceforge.net/projects/mi...Version4/Previous Testing_ gcc-4.2.1-sjlj -2/ and downloaded gcc-core-4.2.1-sjlj-2.tar.gz and gcc-g++-4.2.1-sjlj-2.tar.gz and extracted their contents into the folder gcc-4.2.1-mingw32vc9 in the modelsim directory.
Now I don't get that error and compilation is started. But too many other errors are occurred! It seems errors are about finding functions, headers and libraries...
some of errors:
I run the example in C:\modeltech_10.0c\examples\systemc\sc
What should I do?
Thanks in advance
I want to do simulation for systemc with modelsim. Version of my modelsim is SE 10.0c.
At first I got this error :
So I searched for the file (gcc-4.2.1-mingw32vc9.zip) and didn't find it.# ** Error: (sccom-95) Your installation directory does not contain the appropriate GNU C++ compiler. Download and install the tarball from the ftp site (gcc-4.2.1-mingw32vc9.zip).
Then I found gcc 4.2.1 at https://sourceforge.net/projects/mi...Version4/Previous Testing_ gcc-4.2.1-sjlj -2/ and downloaded gcc-core-4.2.1-sjlj-2.tar.gz and gcc-g++-4.2.1-sjlj-2.tar.gz and extracted their contents into the folder gcc-4.2.1-mingw32vc9 in the modelsim directory.
Now I don't get that error and compilation is started. But too many other errors are occurred! It seems errors are about finding functions, headers and libraries...
some of errors:
# C:\modeltech_10.0c\include\systemc/sc_signal_ports_mti.h:21: error: 'sprintf' was not declared in this scope
c:\modeltech_10.0c\gcc-4.2.1-mingw32vc9\bin\../lib/gcc/mingw32/4.2.1-sjlj/include/c++/cstdlib:72:20: error: stdlib.h: No such file or directory
# c:\modeltech_10.0c\gcc-4.2.1-mingw32vc9\bin\../lib/gcc/mingw32/4.2.1-sjlj/include/c++/cstdlib:117: error: '::div' has not been declared
# c:\modeltech_10.0c\gcc-4.2.1-mingw32vc9\bin\../lib/gcc/mingw32/4.2.1-sjlj/include/c++/mingw32/bits/c++locale.h:75: error: 'strcmp' is not a member of 'std'
I run the example in C:\modeltech_10.0c\examples\systemc\sc
What should I do?
Thanks in advance