Code::Blocks Forums

User forums => Embedded development => Topic started by: letscho on August 21, 2010, 12:24:34 am

Title: SystemC
Post by: letscho 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?

Title: Re: SystemC
Post by: stahta01 on August 21, 2010, 01:57:18 am
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

What compiler are you planning to use?
Title: Re: SystemC
Post by: letscho on August 21, 2010, 09:51:00 am
I always used the GNU GCC compiler. Do I have to change it?
Title: Re: SystemC
Post by: stahta01 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.
Title: Re: SystemC
Post by: letscho 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?
Title: Re: SystemC
Post by: stahta01 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.