Автор: Berik I. Tuleuov, Ademi B. Ospanova
Издательство: Apress
Год: 2024
Страниц: 219
Язык: английский
Формат: pdf (true), epub (true)
Размер: 22.6 MB
This book focuses on how to install C/C++ compilers on Linux and Windows platforms in a timely and efficient way. Installing C/C++ compilers, especially Microsoft compilers, typically takes quite a lot of time because it comes with Microsoft Visual Studio for the vast majority of users. Installing Visual Studio requires usually about 40 GB of disk space and a large amount of RAM, so it is impossible to use weak hardware.
The authors provide an easy way to deploy Microsoft C/C++ compiler: with no disk space headache and hardware resources lack. The method described saves significant time since software can even be deployed on removable devices, such as flash sticks, in an easy and portable way.
It is achieved by using Enterprise Windows Driver Kit (EWDK), single big ISO image, which can be mounted as virtual device and used directly without any installation. EWDK contains everything from Visual Studio except IDE. EWDK also allows to use MASM64 (Microsoft Macro-Assembly) and C# compilers. With the aid of the MSBuild System, one can compile Visual Studio Projects (.vcxproj) and Solutions (.sln) without even using Visual Studio! Similarly, MinGW compilers can be deployed from 7z/zip archives, simply by unpacking into appropriate location. Both Microsoft C/C++ and MinGW compilers can be used as portable software―an approach that does not require administrative privileges at all.
Anyone who wants to start programming in the C/C++ languages needs two things in general: a computer and two programs called a C/C++ language compiler and a source code editor (generally speaking, the so-called debugger — a program that helps find errors in the source code, but still it is not necessary). More, in principle, nothing is needed.
If any text editor (for example, Notepad on Windows) is in principle suitable as a source code editor, then the situation with compilers is not simple. On Windows, they must be installed, and in the vast majority of cases, when it comes to installing the C/C++ compiler, for some reason it means installing Microsoft Visual Studio, which requires a lot of computer resources. Meanwhile, Microsoft Visual Studio is not a compiler, but the so-called Integrated Development Environment (IDE), which includes, among other components, also a C/C++ language compiler.
As far as we know, there are no books devoted to installing C/C++ compilers it is implicitly assumed that the user has the compiler either already installed, or its installation is standard and does not cause difficulties. However, there are many pitfalls here, and we will try to briefly describe the motives that prompted us to write ur book.
What you’ll learn:
Rapid installation of modern Microsoft C/C++ and MinGW compilers.
How to prepare reusable and portable Microsoft C/C++ and MinGW compilers suite on removable media (flash stick, CD/DVD).
How to use Microsoft C/C++ and MinGW compilers even on old/slow computers without standard installation.
How to build under Windows the libraries originally designed for Unix-systems.
Learn to run multiple versions of these compilers at the same time.
Who This Book Is For:
Reader of all skills who wants to save time and efforts to start to work with C++. Also useful for scientists who are not familiar with software installation.
Скачать Beginning C++ Compilers: An Introductory Guide to Microsoft C/C++ and MinGW Compilers