Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the VS2008 compiler

2025-04-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you "how to use the VS2008 compiler", the content is easy to understand, clear, hope to help you solve your doubts, let the editor lead you to study and learn "how to use the VS2008 compiler" this article.

The compiler of Visual C++ 2010 (v16.0.21003.1), including its corresponding library files, was stripped out from Visual Studio 2010 Beta 2, and then I integrated them with Visual studio 2008 to feel the mainstream C++ compilers on the Windows system in the future. I tried to compile a Lambda expression that belongs to the category of caterpillar 0x, which can compile and run normally (the dynamic link library used at runtime is DLL.

MSVCR100.DLL and MSVCP100.DLL, version v10.0.21003.1), and no manifest file (manifest) is required, but under Visual Studio 2008, this manifest file is generated by default. We can set the parameters of the linker in the project properties so that the manifest file is not generated. Now post the test code and the compilation process:

# include # include # include using namespace std; int main () {vector v; for (int I = 0; I < 10; + I) {v.push_back (I);} for_each (v.begin (), v.end (), [] (int n) {cout)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report