(轉貼) 如何设定SystemC的Project环境? (C/C++) (SystemC) (VC++) (IC Design)

Creating SystemC Applications
-----------------------------

1. Start Visual Studio. From the Start Page select New Project and Win32 Console Project. Type the project name and select a suitable location then click OK.

2. Select the Application Settings page of the Win32 Application Wizard and make sure the 'Empty project' box is ticked. Click 'Finish' to complete the wizard.
  
3. Add new/existing C++ files to the project and edit code.

4. Display the project Property Pages by selecting 'Properties...' from the Project menu.
  
5. From the C/C++ tab, select the General properties and set 'Detect 64-bit Portability Issues' to No.

6. From the C/C++ tab, select the Language properties and set 'Enable Run-Time Type Info' to Yes.

7. From the C/C++ tab, select the Command Line properties and add /vmg to the 'Additional Options:' box.

8. From the Linker tab, select the Input properties and type 'systemc.lib' in the 'Additional Dependencies' box.

9. Click OK


Also make sure that the compiler and linker can find the SystemC header and library files respectively. There are two ways to do this:

To update the include file and library directory search paths for all projects:

1. Select Tools -> Options . . . and the Projects -> VC++ Directories tab
  
2. Select show directories for: Library files

3. Select the 'New' icon and browse to: C:\apps\systemc-2.0.1\msvc71\systemc\debug

4. Select show directories for: Include files

5. Select the 'New' icon and browse to: C:\apps\systemc-2.0.1\src

To add the include file and library directory search paths for the current project only:

1. Display the project Property Pages by selecting 'Properties...' from the Project menu.
 
2. From the C/C++ tab, select the General properties and type the path to the SystemC 'src' directory in the text entry field labeled 'Additional include directories' (e.g. the examples use 'http://www.cnblogs.com/../src').

3. From the Linker tab, select the General properties and type the path to the SystemC library:   ...\systemc-2.1\msvc71\systemc\debug'systemc.lib' in the 'Additional Library Directories:' box.

9. Click OK

posted on 2006-10-18 08:36  真 OO无双  阅读(1831)  评论(0编辑  收藏  举报

导航