简体   繁体   English

Visual Studio Platform工具集和运行时库

[英]Visual Studio Platform toolset and Runtime Library

After browsing here and there, i have come to following conclusion 在四处浏览后,我得出以下结论

  1. Visual Studio Platform Toolset - Compiler, Linker, Assembler etc which changes with each version of Visual Studio (mostly). Visual Studio平台工具集-编译器,链接器,汇编器等,随Visual Studio的每个版本(大多数)而变化。

Note : If your project is built with previous version of Platform toolset then it may not work as such with newer version of platform toolset as they may be incompatible. 注意:如果您的项目是使用先前版本的Platform工具集构建的,则它可能无法与更新版本的Platform Toolset一起使用,因为它们可能不兼容。

  1. Runtime Library - A library which assists in running the code(program) you write by acting as an intermediary between Program and Operating system. 运行时库-通过充当程序和操作系统之间的中介,可帮助运行您编写的代码(程序)的库。 It has various options like /Mt /Mtd /MD /MDd which stand for multithreaded static, multithreaded staticdebug, multithreaded dynamic, multithreaded dynamic debug respcetiviely 它具有/ Mt / Mtd / MD / MDd等各种选项,分别代表多线程静态,多线程staticdebug,多线程动态,多线程动态调试

Note: All modules of your code must be using same Runtime to be compatible ie one module built with /Mt should be used with application too using Runtime library as /Mt else there may be issues. 注意:您的代码中的所有模块都必须使用相同的运行时才能兼容,即,使用/ Mt构建的一个模块也应与运行时库一起用作应用程序,因为/ Mt可以与应用程序一起使用,否则可能会出现问题。

Am i right in my summary above? 我在上面的摘要中对吗? Or still i am not clear about this? 还是我不清楚呢? Can anyone provide their inputs 谁能提供他们的意见

I have googled, played tutorials and tried to consolidate all the information above. 我已经用Google搜索,玩过教程,并试图整合以上所有信息。 Not sure did i understand it or still having some bits and pieces missing. 我不确定我是否理解它,或者仍然缺少点点滴滴。

SHARED ABOVE

The platform toolset consists of the C++ compiler (cl.exe) and linker (link.exe), along with the C/C++ standard libraries. 平台工具集由C ++编译器(cl.exe)和链接器(link.exe)以及C / C ++标准库组成。 Since Visual Studio 2015, the major version of the toolset has remained at 14, which means that projects compiled with Visual Studio 2019 or Visual Studio 2017 are ABI-backwards-compatible with projects compiled with Visual Studio 2015. 自Visual Studio 2015以来,该工具集的主要版本仍为14,这意味着使用Visual Studio 2019或Visual Studio 2017编译的项目与使用Visual Studio 2015编译的项目在ABI向后兼容。

The Microsoft run-time library provides routines for programming for the Microsoft Windows operating system. Microsoft运行时库提供了用于Microsoft Windows操作系统编程的例程。 These routines automate many common programming tasks that are not provided by the C and C++ languages. 这些例程可自动执行C和C ++语言未提供的许多常见编程任务。 The C Run-time Library (CRT) is the part of the C++ Standard Library that incorporates the ISO C99 standard library. C运行时库(CRT)是包含ISO C99标准库的C ++标准库的一部分。 The Visual C++ libraries that implement the CRT support native code development, and both mixed native and managed code. 实现CRT的Visual C ++库支持本机代码开发以及混合的本机代码和托管代码。 All versions of the CRT support multi-threaded development. CRT的所有版本都支持多线程开发。 Most of the libraries support both static linking, to link the library directly into your code, or dynamic linking to let your code use common DLL files. 大多数库都支持静态链接(将库直接链接到您的代码中)或动态链接以使您的代码使用常见的DLL文件。

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

相关问题 Visual Studio 希望使用错误的平台工具集进行构建 - Visual Studio wants to build with wrong platform toolset Visual Studio 平台工具集与 Windows SDK - Visual studio platform toolset vs Windows SDK 什么是 Visual Studio 项目中的“平台工具集”设置 - What is "Platform Toolset" setting in visual studio project 如何将Visual Studio 2005的平台工具集添加到较新IDE版本的“Platform Toolset”列表中? - How can I add the platform toolset of Visual Studio 2005 into the `Platform Toolset` list of the newer IDE versions? 使用Visual Studio 2012并使用较旧的平台工具集进行编译? - Use Visual Studio 2012 and compile with older platform toolset? 找不到 Visual Studio Platform 2015 工具集 ='v141' - Visual Studio Platform 2015 Toolset ='v141' cannot be found Visual Studio _MSC_VER与平台工具集 - Visual Studio _MSC_VER versus Platform Toolset Visual Studio:如何使用平台工具集作为预处理器指令? - Visual Studio: How to use platform toolset as preprocessor directive? Visual Studio 未将 WSL 列为平台工具集 - Visual Studio Doesn't List WSL as Platform Toolset 找不到Visual Studio 2008的生成工具(Platform Toolset ='v90') - The build tools for Visual Studio 2008 (Platform Toolset = 'v90') cannot be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM