Get the App
SLTechnology News&Howtos  ›  Servers  › 

The meaning and usage of WIN32_LEAN_AND_MEAN

Shulou Source: shulou.com Published: 2022-06-03 06:15:57 10月03日 Update

Macro compilation preprocessing header, macro definition # define WIN32_LEAN_AND_MEAN can often appear in stdafx.h files

The specific meaning is to remove the inclusion of some header files when the project contains # contains. An important demonstration.

An example is a duplicate definition of _ WINSOCKAPI_ between winsock2.h and windows.h, if the above macro compilation is defined

It will avoid the error of redefining different links

If there is a problem with duplicate definition of winsock in a project, you can do the following:

Project property "Candlestick +" preprocessor WIN32_LEAN_AND_MEAN

Tags: Project that is file compilation preprocessing meaning different important between examples attributes links errors problems faceted package demo Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Microsoft Apple OPPO Reno Huawei