TRF
January 14, 2021, 5:26pm
#1
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:
Hello, It looks like LexActivator depends on other libraries/frameworks. For example on MacOS I have to link CoreFoundation and SystemConfiguration to make it works. Right now I’m facing similar issues with linking of my application on Ubuntu 14.04 (seems it needs pthread and maybe something else). I’m using C/C++ static library with Qt application. Could someone please specify (or point to) complete list of dependencies on each platform to know what exactly should be additionally linked to pro…
TRF
January 15, 2021, 7:08am
#3
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