This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Knowledge Base
- :
- 'error LNK2019: unresolved external symbol __imp__GetProfilesDirectoryA@8 referenced in function' se...
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
'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'
No ratings