Board logo

标题: [其他] [求助]请问有熟悉Visual studio 2005 的朋友么? [打印本页]

作者: trau    时间: 2007-5-2 18:11     标题: [求助]请问有熟悉Visual studio 2005 的朋友么?

要用VS2005编写System C程序,可是目前根本无从入手。

希望有经验的前辈指点一二。

先谢了。
作者: qquchn    时间: 2007-5-3 22:21

SystemC 用微软的编译器? 不可思议 不如用开源的
作者: trau    时间: 2007-5-3 23:25

那是Anlauf说的,你找他建议去。

开源的你用哪个,会用不?
作者: qquchn    时间: 2007-5-4 16:50

你需要去SystemC.org 下载扩展库 include进去就可以用了

Installing SystemC

Installing To Your Local Computer

   1.

      Download SystemC from http://www.systemc.org
   2.

      Unzip SystemC files to a hard drive with "plenty" space. Preferably, unzip the files to the hard drive's directory (ex; C:\SystemC or E:\SystemC)
   3.

      The SystemC distribution includes project and workspace files for Visual C++. If you use these project and workspace files the SystemC source files are available to your new project. For Visual C++ 6.0 the
      project and workspace files are located in directory: ...\systemc-2.0.1b\msvc60 , where "..." is whatever parent directory you saved SystemC to.
   4.

      Click on the subdirectory: `systemc' which contains the project and workspace files to compile the `systemc.lib' library. Double-click on the `systemc.dsw' file to launch Visual C++ with the workspace file. The workspace file will have the proper switches set to compile for Visual C++ 6.0.
      Select `Build systemc.lib' under the Build menu or press F7 to build `systemc.lib'.

Creating a new design

   1. Start Microsoft Visual C++ 6.0
   2. Create a Project Workspace:
         1. Click on "File", then "New", select "Projects", then click on "Win32 Console Application".

         2. In the "Location" box, click on the down arrow, then on "Drives", and choose "h:\\some_server_name\cs1Xxx" , then click "OK" (some_server_name will have some name there (it changes periodically)) (csXxx is your login). You should not actually be typing anything here, just click.

         3. For the "Project Name", We will use "lab1a" as the example.

         4. Type "OK".

         5. Choose "An empty project" and click "Finish". Then click "OK".

   3. You can now see a folder named "lab1a classes" in the workspace window. (Left part of screen)
   4. Port SystemC libraries to Microsoft Visual C++ 6.0:
         1. Click on “Project”, then “Settings”, then select the C/C++ tab, and then finally select the “C++ Language” category. Make sure that the “Enable Run Time Type Information (RTTI)” checkbox is checked.

         2. Also make sure that the SystemC header files are included by  switching to the “Preprocessor” on the C/C++ tab and then typing “C:\SystemC\systemc-2.0.1\src” in the text entry field labeled “Additional include directories”.

         3. Next click on the “Link” tab, and make sure the SystemC library is included to your project by typing “C:\SystemC\systemc-2.0.1\msvc60\systemc\Debug” in the text entry field labeled “Additional library path”.

         4. Add the SystemC object files by first clicking on “Project”, then “Add to Project”, then “Files”. In the File Browser navigate to the “C:\SystemC\systemc-2.0.1\msvc60\systemc\Debug” directory. In the text entry field labeled “File Name” type “*.obj” and press enter. Click on the file “sc_attribute.obj” and then simultaneously press the “Ctrl” & “A” keys (CTRL+A). Click the OK button to add the files.

         5. In your workspace window under the “File View” Tab, you should see a number of object files with the “sc_” prefix such as sc_attribute.obj, sc_bit.obj, etc. Find the file “sc_isdb_trace.obj”, click that file name, and press “delete” on your keyboard.
作者: trau    时间: 2007-5-4 22:00

SystemC我已经下载,解压了并且编译了(你以后需要的话,记得这下载要求有Account)。

VS2005我也设置好了,大概看了一下,和你上面说的Visual C++ 6.0差不多。

问题是感觉这个软件比Eclipse难上手好多,一直不会用。

qq姐,你能不能找到VS2005的视频教程?




欢迎光临 人在德国 社区 (http://rs238848.rs.hosteurope.de/bbs/) Powered by Discuz! 7.2