Static link on VS2019

I’m trying to link statically on VS2019 using:

At “stdafx.h”:

#define LEXACTIVATOR_STATIC
#ifdef _DEBUG
	#pragma comment(lib, "LexActivator/LexActivatord.lib")
	#pragma comment(lib, "LexActivator/libcurl_MDd.lib")
#else
	#pragma comment(lib, "LexActivator/LexActivator.lib")
	#pragma comment(lib, "LexActivator/libcurl_MD.lib")
#endif

At cpp file:
#include “stdafx.h”
#include “LexActivator.h”

And I get this linking error:
12>LexActivatord.lib(LexAbstraction.obj) : error LNK2019: unresolved external symbol __imp_WinHttpGetIEProxyConfigForCurrentUser

Any idea ?

Thanks.

Hi,

Please refer to the following:

Thaks.

It’s working:

#define LEXACTIVATOR_STATIC
#ifdef _DEBUG
	#pragma comment(lib, "LexActivator/LexActivatord.lib")
	#pragma comment(lib, "LexActivator/libcurl_MDd.lib")
	#pragma comment(lib, "Winhttp.lib")
#else
	#pragma comment(lib, "LexActivator/LexActivator.lib")
	#pragma comment(lib, "LexActivator/libcurl_MD.lib")
	#pragma comment(lib, "Winhttp.lib")
#endif