简体   繁体   English

哪些编译器选项用于在Visual Studio中编译C ++ STL类/函数?

[英]What compiler options used to compile C++ STL classes/functions in Visual Studio?

I have a C++ app for Windows. 我有一个Windows的C ++应用程序。 In Visual Studio I can change configuration of compiler including optimization options (ie /O1 /O2 etc.). 在Visual Studio中,我可以更改编译器的配置,包括优化选项(即/ O1 / O2等)。 After that all my source code will be compiled as I wish. 之后,我所有的源代码都将按照我的意愿进行编译。

But what about functions/classes from STL? 但是STL中的函数/类呢? As I understand some of them not templates but regular C++ functions. 据我了解,其中一些不是模板,而是常规的C ++函数。 Are they pre-built somehow? 他们是预先建造的吗? What compiler options used to compile them? 哪些编译器选项用于编译它们? Can I can change these config? 我可以更改这些配置吗?

They are pre-built in a non-documented process. 它们是在未记录的过程中预先构建的。 You are not supposed to redo this, but have to trust the compiler team to know the proper settings. 您不应重做,而必须信任编译器团队以了解正确的设置。 :-) :-)

If you look in your Visual Studio program folder, the libraries are in the VC/lib folder, and all the sources in VC/crt/src . 如果您在Visual Studio程序文件夹中查找,则库位于VC/lib文件夹中,所有源位于VC/crt/src

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

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