[英]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.