Cryptlex Forums

Static link on VS2019

T
TRF

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.

A
Adnan KamiliCryptlex team

Hi,

Please refer to the following:

T
TRF

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

← Back to all topics · 3 posts · 2056 views · opened 2021-01-14