当前位置:网站首页>Vs attribute configuration related knowledge

Vs attribute configuration related knowledge

2022-07-23 12:37:00 cg101202

VS Attribute configuration summary

  1. Add... As needed Attach include directory
  2. Pay attention to the setting of precompiled header
  3. Add... As needed Additional Library Directory as well as Additional dependency
  4. Note the preprocessor definition
  5. Note the configuration type , yes Applications or Dynamic link library
  6. Pay attention to the molecular system of the region , yes window still Console

Definition

Precompiled translation head

C++ Precompiled translation head _ Whitewash craftsman's blog -CSDN Blog _ Precompiled translation head

Preprocessor definition

Preprocessor defines macros _《 one who tries not to offend anybody 》 special column -CSDN Blog _ Preprocessor definition

The difference between window console and console application
The only difference is , If the console application is not launched from a console ( Or the console is actively suppressed at startup ), It always generates a console . On the other hand ,Windows The application does not produce a console . It can still be attached to an existing console or used AllocConsole Create a new console .

This makes Windows The application is more suitable for GUI Application or background application , Because you usually don't want to create terminal windows for these applications .
visual c++ - Difference between Windows and Console application - Stack Overflow

C/C++ - Code generation - Enable function level linking
Allow the compiler to package functions (COMDAT) Form to package each function .

C/C++ - Optimize - Enable inner functions
Replace some function calls with internal or special forms of functions that can help your application run faster .

原网站

版权声明
本文为[cg101202]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207230539378064.html