'error LNK2019: unresolved external symbol __imp__GetProfilesDirectoryA@8 referenced in function' seen when building with FNP 11.14.1.1

'error LNK2019: unresolved external symbol __imp__GetProfilesDirectoryA@8 referenced in function' seen when building with FNP 11.14.1.1

Symptoms

When trying to build a Visual Studio Project based on FlexNet Publisher 11.14.1.1, this error may be seen which does not occur on 11.14.1 or earlier -

1>lmgr_trl.lib(l_prikey.obj) : error LNK2019: unresolved external symbol __imp__GetProfilesDirectoryA@8 referenced in function _kGNIok1vC


Cause

There is a new library that needs to be added, userenv.lib as confirmed by this extract from the makefile -

XTRALIB1 = $(LMSTDREDIR_LIB) $(ADDITIONAL_LIBS) oldnames.lib kernel32.lib user32.lib netapi32.lib \

gdi32.lib comdlg32.lib comctl32.lib wsock32.lib shell32.lib \

Rpcrt4.lib oleaut32.lib Ole32.lib Wbemuuid.lib wintrust.lib crypt32.lib Ws2_32.lib iphlpapi.lib Psapi.lib advapi32.lib Shlwapi.lib dhcpcsvc.lib userenv.lib

This has yet to be added to the Release Notes or Documentation.


Resolution

Add userenv.lib to the list of the linker 'Additional Dependencies'
Was this article helpful? Yes No
No ratings
Version history
Revision #:
1 of 1
Last update:
‎Aug 31, 2018 08:14 AM
Updated by: