简体   繁体   English

使用 C++ mingw 编译器安装 unix 终端的简单方法是什么?

[英]What is an easy way to install a unix terminal with a C++ mingw compiler?

I'm going to teach students to use SFML with C++, and I'm afraid the school doesn't have visual studio C++ installed, or will be a bit heavy to use for those students.我要教学生们使用SFML和C++,恐怕学校没有安装visual studio C++,或者对那些学生来说使用起来有点繁重。

I want to have a plan B and have the option of a simple makefile that I can build on windows with SFML.我想要一个计划 B,并且可以选择一个简单的 makefile,我可以使用 SFML 在 Windows 上构建它。

https://www.sfml-dev.org/download/sfml/2.5.1/ this page offers binaries compiled with different, specific versions of mingw with their respective mingw package links, unfortunately mingw doesn't include an unix terminal, like the one included with git-bash, so I can run a makefile. https://www.sfml-dev.org/download/sfml/2.5.1/这个页面提供了用不同的、特定版本的 mingw 编译的二进制文件以及它们各自的 mingw 包链接,不幸的是 mingw 不包含一个 unix 终端,比如包含在 git-bash 中的那个,所以我可以运行一个 makefile。

What are the steps required to have a problem unix terminal, running in windows, minsys, msys2 or not, that can work well with those mingw packages?有问题的 unix 终端需要哪些步骤,无论是否在 windows、minsys、msys2 中运行,都可以与那些 mingw 包很好地配合使用? I have trouble finding help or proper instructions.我很难找到帮助或正确的说明。

You want https://www.msys2.org/你想要https://www.msys2.org/

It provides bash terminal and already contains mingw compiler.它提供了 bash 终端并且已经包含了 mingw 编译器。 Perhaps it even has SFML packages already.也许它甚至已经有了 SFML 包。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM