将斯坦福 C++ 库添加到 Visual Studio 2015 [英] Adding Stanford C++ Library to Visual Studio 2015

查看:79
本文介绍了将斯坦福 C++ 库添加到 Visual Studio 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过 Eric S. Roberts 的C++ 编程抽象"学习 C++,其中涵盖了斯坦福 CS106B 的内容.它需要使用斯坦福 C++ 库来处理书中给出的大量示例.

I am learning C++ through 'Programming Abstractions in C++' by Eric S. Roberts, which covers the content of Stanford CS106B. It requires to use the Stanford C++ Library to work on a lot of the examples given in the book.

然而,我使用的是 Visual Studio Community 2015 并且几乎无法将斯坦福 C++ 库链接到它.我已经尝试了迄今为止在互联网上找到的所有内容.也许该库与 VS 2015 不兼容?

I am however using Visual Studio Community 2015 and am pretty much unable to link the Stanford C++ Library to it. I have tried everything that I found so far on the internet. Perhaps the library is not compatible with VS 2015 yet?

能否请您帮我提供一组说明.我不是软件工程师或 CS.我是一个 ME,所以任何详细的说明都会非常有帮助!谢谢!

Would you please, help me with a set of instructions. I am not a software engineer or a CS. I am an ME, so any detailed instructions would be very helpful! Thanks!

推荐答案

我查找了斯坦福 C++ 库,发现它包含 头文件和源文件.

I've looked for the Stanford C++ library and found that is contains pure header and source files.

所以你可以做的是:

A) 只需将文件直接添加到您的项目中即可.(拖放)

A) Just add the files directly to your project.(Drag-n-drop)

B) 使用斯坦福图书馆文件创建一个新的静态图书馆项目编译,然后链接到您的个人项目.

B) Create a new static library project with Stanford library files, compile it and then link it to your personal project.

斯坦福图书馆源代码:

http://stanford.edu/~stepp/cppdoc/

https://github.com/stepp/stanford-cpp-图书馆/树/主/斯坦福CPPLib

这篇关于将斯坦福 C++ 库添加到 Visual Studio 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆