简体   繁体   English

如何安装此控制台库? Visual Studio C ++

[英]How do I install this console library? visual studio c++

I was about to begin this tutorial: http://www.kathekonta.com/rlguide/article1.html (you should see it under the implementation section)But then it said I need the "console library" does anyone know where I can find this? 我即将开始本教程: http : //www.kathekonta.com/rlguide/article1.html (您应该在实现部分下看到它)但是随后它说我需要“控制台库”,有人知道我在哪里可以找到这个? And if you find it can you tell me how I can install it? 如果找到它,可以告诉我如何安装吗? :DI really want to get to this I have learned the basics(variables, loops, pointers, arrays, operators) thanks much if you read this -lopesam :DI真的很想了解这一点,我已经学习了基础知识(变量,循环,指针,数组,运算符),如果您阅读此-lopesam,将非常感谢

At the bottom of the page, download his source code. 在页面底部,下载他的源代码。 Inside is a folder named ConsoleLibrary. 里面是一个名为ConsoleLibrary的文件夹。 It contains console.h and console.lib. 它包含console.h和console.lib。 You need to know the directory in which you place them. 您需要知道放置它们的目录。 For better or for worse, I keep all of mine in a single folder. 不管是好是坏,我将我所有的东西都放在一个文件夹中。

When you start your project, you'll have to go to (assuming you're using VS) the project options. 启动项目时,必须转到(假设使用VS)项目选项。 (Project->Project Name Properties) Click VC++ directories and then click include, the down arrow on the right, then edit. (项目->项目名称属性)单击VC ++目录,然后单击包含,右侧的向下箭头,然后进行编辑。 Add the directory in which the .h file is in. Do the same for libraries and add the directory that .lib is in. In the properties menu, click the Linker drop down and click on Input and then Additional Dependencies and add Console.lib to the list. 添加.h文件所在的目录。对库执行相同操作,然后添加.lib所在的目录。在属性菜单中,单击“链接器”下拉列表,然后依次单击“输入”和“其他依赖项”并添加Console.lib到列表。

If you get any linker errors like (unresolved external blah blah blah) then you might need to find a console .dll or some other file and put it in your C++ project directory. 如果您遇到任何链接器错误,例如(无法解析的外部等等),那么您可能需要找到一个控制台.dll或其他文件,并将其放在C ++项目目录中。

If you're not using VS, then at least you can still find the console library in the same place but I'm unfamiliar with linking in other compilers. 如果您不使用VS,那么至少您仍然可以在同一位置找到控制台库,但是我不熟悉其他编译器中的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Visual Studio 2017 中为 C++ 控制台应用程序添加 header 文件 - How do I add header file for a C++ console app in Visual Studio 2017 如何安装Visual Studio 2008的最小功能,足以使用Visual Studio 2010的多目标构建C ++应用程序? - How do I install the minimal facilities of Visual Studio 2008 sufficient for building C++ applications using Visual Studio 2010's multitargeting? 如何在Visual Studio中使用C ++ shlwapi库? - How can I use the C++ shlwapi library in Visual Studio? 如何将构建的 C++ 库安装到 /usr/include? - How do I install a built C++ library to /usr/include? Stroustrup:对于 C++,我如何安装 FLTK 库? - Stroustrup: For C++, how do I install FLTK library? 如何为C ++ Visual Studio 2015安装boost / asio.hpp库 - how to install boost/asio.hpp library for C++ visual studio 2015 如何在 Visual Studio 中打开 C++ 项目文件夹? - How do I open a c++ project folder in visual studio? 如何在 Visual Studio C++ 中增加堆栈大小? - How do I increase the stack size in Visual Studio C++? 如何将扩展链接到Project(Visual Studio C ++) - How do I link Extensions to Project (Visual Studio C++ ) 如何为Visual C ++控制台应用程序打开新的控制台窗口? - How do I open a new console window for a Visual C++ console application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM