Visual 2008 Express编译斯坦福第三方C++库

最近再看斯坦福的抽象编程,挺有意思的,但里面需要用到他们自己编译的c++第三方库文件,所以自己弄了一下。目前大概需要如下文件:

1.官方提供的是2005的setup文件(PCLibs-VS2005-ADT-Installer.zip)。

2.visual studio 2008 express,当然更高级也可以,但是这里express就够用了,而且安装文件不大。

visual studio 2008 express可以到下面两个链接下载

 VS 2008 Express

http://download.microsoft.com/download/8/B/5/8B5804AD-4990-40D0-A6AA-CE894CBBB3DC/VS2008ExpressENUX1397868.iso

VS 2008 Express SP1

http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso

3. LessMSIerables:一个可以抽取stanford官方msi程序里面文件的软件

好了,这些文件准备好后就可以开工了,配置和c++安装第三方库文件方法完全一样,不过stanford提供了第三方库文件的工程模板,生成项目更加方便

1.先安装vs2008 express

2.用LessMSlerables抽取第三方库文件

the LessMSIerables(Universal Extractor also works well) in order to extract the contents of the msi file. The msi contains four folders with all the stuff needed to create a new custom wizard. So, the tool extracted the following:

SourceDir |- Includes Folder |- Library Folder |- Project Folder |- Wizard Folder

3.配置第三方库文件

  • Now some copying:
    1. The CS106CPPInc folder inside the 'Includes Folder' goes to C:\Program Files\Microsoft Visual Studio 9.0\VC\include (as a subfolder!)
    2. 'Library Folder'\CS106CPPLib.lib goes to C:\Program Files\Microsoft Visual Studio 9.0\VC\lib
    3. 'Wizard Folder\AppWiz\CS106 Assignment Wizard' to C:\Program Files\Microsoft Visual Studio 9.0\VC\VCWizards\AppWiz (meaning CS106... should appear as a sub-folder of AppWiz)
    4. The three files in 'Project Folder' will go into C:\Program Files\Microsoft Visual Studio 9.0\VC\Express\VCProjects\Stanford. One of those three files, the CS106 Assignment Wizard.vsz, needs to be edited (a text file) and its second line should become:

Wizard=VsWizard.VsWizardEngine.9.0 (原来是2005,所以是8,0,这里要改成9.0)

4.运行vs2008,可以看到stanford工程模板。用他们提供的工程模板写代码就好了。

 

猜你喜欢

转载自blog.csdn.net/huaisu/article/details/81901542
今日推荐