ATL library :warning LNK4254 and LNK4078 ATL library :warning LNK4254 and LNK4078 windows windows

ATL library :warning LNK4254 and LNK4078


I had the same warnings with Visual Studio 2010 Express Edition and the ATL taken from WDK 7.1. It seems that the atl libs were built with different options than your project takes from atlbase.h. I changed the settings in atlbase.h

#pragma section("ATL$__a", read, shared) => #pragma section("ATL$__a", read)#pragma section("ATL$__z", read, shared) => #pragma section("ATL$__z", read)#pragma section("ATL$__m", read, shared) => #pragma section("ATL$__m", read)

and the warnings were gone.