- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- Re: LNK error when building lmflex in Visual Studio 2019
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I've tried to follow the steps in the following link to build the lmflex.c for File-Based licensing
The problem is that I keep getting LNK errors :
Error LNK2001 unresolved external symbol pthread_mutex_lock lmflex lmgr_trl.lib(cmn_sock_impl.obj)
Error LNK2001 unresolved external symbol pthread_mutex_unlock lmflex lmgr_trl.lib(l_ssl.obj)
Error LNK2019 unresolved external symbol pthread_create referenced in function sJXEOZcr07C43XvNF9h lmflex lmgr_trl.lib(cmn_thread_impl.obj)
And so many others.
How can I fix the problem?
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@eskandarih Thanks for your confirmation, yes, this is the list for FNP 11.19.0 just to keep it handy for other user if they want.
lm_new.obj
lmgr_trl.lib
libcrvs.lib
libsb.lib
activation\lib\libnoact.lib
lmgr_dongle.lib
libredir_std.lib
libcmt.lib
libvcruntime.lib
libucrt.lib
legacy_stdio_wide_specifiers.lib
legacy_stdio_definitions.lib
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
libpthread.lib
Best Regards,
Mani.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @eskandarih what is the FNP version which you are using to build lmflex in Visual Studio 2019?.
Best Regards,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I'm using FNP 2022 R1 (11.19.0)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
I forgot to add libpthread.lib to the linker.
The problem is fixed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@eskandarih Thanks for your confirmation, yes, this is the list for FNP 11.19.0 just to keep it handy for other user if they want.
lm_new.obj
lmgr_trl.lib
libcrvs.lib
libsb.lib
activation\lib\libnoact.lib
lmgr_dongle.lib
libredir_std.lib
libcmt.lib
libvcruntime.lib
libucrt.lib
legacy_stdio_wide_specifiers.lib
legacy_stdio_definitions.lib
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
libpthread.lib
Best Regards,
Mani.