Author Topic: SystemC  (Read 8498 times)

Offline letscho

  • Single posting newcomer
  • *
  • Posts: 3
SystemC
« on: August 21, 2010, 12:24:34 am »
 Installation Notes for Windows
---------------------------------

Visual C++ 7.1
--------------
The download directory contains two subdirectories: 'msvc71' and
'examples'.

The 'msvc71' directory contains the project and workspace files to
compile the 'systemc.lib' library. Double-click on the 'SystemC.vcproj'
file to launch Visual C++ 7.1 with the workspace file. The workspace file
will have the proper switches set to compile for Visual C++ 7.1.
Select `Build SystemC' under the Build menu or press F7 to build
`systemc.lib'.

The `examples' directory contains the project and workspace files to
compile the SystemC examples. Go to one of the examples subdirectories
and double-click on the .vcproj file to launch Visual C++ with the
workspace file. The workspace file will have the proper switches set
to compile for Visual C++ 7.1. Select 'Build <example>.exe' under the
Build menu or press F7 to build the example executable.

I want to use Code::Blocks instead of Visual C++, but how can I build the file systemc.lib and include it in Code::Blocks? I hope someone can help?

« Last Edit: August 21, 2010, 12:52:17 am by letscho »

Online stahta01

  • Lives here!
  • ****
  • Posts: 6644
    • My Best Post
Re: SystemC
« Reply #1 on: August 21, 2010, 01:57:18 am »
« Last Edit: August 21, 2010, 01:59:39 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline letscho

  • Single posting newcomer
  • *
  • Posts: 3
Re: SystemC
« Reply #2 on: August 21, 2010, 09:51:00 am »
I always used the GNU GCC compiler. Do I have to change it?

Online stahta01

  • Lives here!
  • ****
  • Posts: 6644
    • My Best Post
Re: SystemC
« Reply #3 on: August 21, 2010, 04:23:50 pm »
I always used the GNU GCC compiler. Do I have to change it?

Using the MSVC++ is easier to do.

Import the MSVC++ project with the default Compiler set to what you wish to use.

Knowledge required: Must be skilled programmer with knowledge of both MinGW GCC, MSVC++, and Code::Blocks.

1. Use Foreign project importer to import MSVC++ project (under File -> Import Project)
2. Save the created Code::Blocks Project/Workspace.
3. Fix all the broken things.

Quote
how can I build the file systemc.lib
The above is likely to be hard to impossible to do; depending on what you mean. Hint: .lib files are NOT used/supported by Mingw GCC

Tim S.
« Last Edit: August 21, 2010, 04:25:58 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline letscho

  • Single posting newcomer
  • *
  • Posts: 3
Re: SystemC
« Reply #4 on: August 21, 2010, 09:18:01 pm »
There is the problem, I am not a skilled programmer (I try to become one)!
Until now I have never had to change the compiler settings, because I usually use Code::Blocks only for simply C programs.

I try to learn SystemC which is entirely based on C++. Hence I thought when I include the libraries of SystemC, I can use Code::Blocks as development environment.  But I cannot find any files with the ending .lib in the SystemC source code.

What do I have to do when I want to use Code::Blocks as development environment for SystemC programs?

Online stahta01

  • Lives here!
  • ****
  • Posts: 6644
    • My Best Post
Re: SystemC
« Reply #5 on: August 21, 2010, 09:31:02 pm »
There is the problem, I am not a skilled programmer (I try to become one)!
Until now I have never had to change the compiler settings, because I usually use Code::Blocks only for simply C programs.

I try to learn SystemC which is entirely based on C++. Hence I thought when I include the libraries of SystemC, I can use Code::Blocks as development environment.  But I cannot find any files with the ending .lib in the SystemC source code.

What do I have to do when I want to use Code::Blocks as development environment for SystemC programs?

Learn how to do it. Learn how the compiler you pick is used to make SystemC programs!

Turn on Full Compiler Logging and ask your question on a site that Supports SystemC; this is NOT that site.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Note: In the future you might want to read all the FAQ from time to time; till you understand them all.

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org