- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- Re: Visual Studio 2017 build
- 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
Trying to build a software using VS2017 but cannot get past the following unresolved externals at the linking:
link @C:\Users\Al\AppData\Local\Temp\34\tmpp7ye5kme.lnk
Creating library build\Windows32\Debug\bin\intel\C3070030_License.lib and object build\Windows32\Debug\bin\intel\C3070030_License.exp
libpwcflexlm.lib(cfflex.obj) : error LNK2001: unresolved external symbol _l_n36_buf
lmgr_trl.lib(lm_njob.obj) : error LNK2001: unresolved external symbol _l_n36_buf
lmgr_trl.lib(cmn_sock_impl.obj) : error LNK2001: unresolved external symbol __imp__getaddrinfo@16
lmgr_trl.lib(lm_set_attr.obj) : error LNK2001: unresolved external symbol __imp__getaddrinfo@16
lmgr_trl.lib(l_init_file.obj) : error LNK2001: unresolved external symbol __imp__getaddrinfo@16
lmgr_trl.lib(FlexInetAddress.obj) : error LNK2001: unresolved external symbol __imp__getaddrinfo@16
lmgr_trl.lib(FlexSocket.obj) : error LNK2001: unresolved external symbol __imp__getaddrinfo@16
lmgr_trl.lib(cmn_sock_impl.obj) : error LNK2001: unresolved external symbol __imp__freeaddrinfo@4
lmgr_trl.lib(lm_set_attr.obj) : error LNK2001: unresolved external symbol __imp__freeaddrinfo@4
lmgr_trl.lib(l_init_file.obj) : error LNK2001: unresolved external symbol __imp__freeaddrinfo@4
lmgr_trl.lib(FlexInetAddress.obj) : error LNK2001: unresolved external symbol __imp__freeaddrinfo@4
lmgr_trl.lib(FlexSocket.obj) : error LNK2001: unresolved external symbol __imp__freeaddrinfo@4
lmgr_trl.lib(FlexInetAddress.obj) : error LNK2019: unresolved external symbol __imp__getnameinfo@28 referenced in function _wc_ZEySSs1iHKlCrqUzvOl9LoD85S
lmgr_trl.lib(FlexSocketAddress.obj) : error LNK2001: unresolved external symbol __imp__getnameinfo@28
lmgr_trl.lib(flex_file.obj) : error LNK2019: unresolved external symbol __imp__PathRemoveBackslashW@4 referenced in function _ro26GHQZ20
lmgr_trl.lib(l_prikey.obj) : error LNK2019: unresolved external symbol __imp__GetProfilesDirectoryA@8 referenced in function _r1hwGYHZY
lmgr_trl.lib(cmn_vm_FakeVMDetection.obj) : error LNK2019: unresolved external symbol __imp__IsUserAnAdmin@0 referenced in function _f1TzEx8ewlEqwU9F81MwmbwOY
lmgr_trl.lib(cmn_vm_genid.obj) : error LNK2001: unresolved external symbol __imp__IsUserAnAdmin@0
lmgr_trl.lib(cmn_vm_azure-windows.obj) : error LNK2019: unresolved external symbol _DhcpRequestParams@44 referenced in function _s_GetOption245
build\Windows32\Debug\bin\intel\C3070030_License.exe : fatal error LNK1120: 8 unresolved externals
scons: *** [build\Windows32\Debug\bin\intel\C3070030_License.exe] Error 1120
I am using the latest 11.18.2 release and have built the required files using VS2017 already. Now I am trying to compile an application using FlexLM license methods.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@almamun Try adding the compiler flag /TC if you are getting any warning from the compiler
Lm_new.obj is used in when linking statically in Windows. You will need it if you get the "l_n36_buf" error when linking with FLEXlm libraries or use lc_new_job() function in your code.
Make sure all the libraries below are available
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Most are resolved using the Windows SDK libraries except for this one now:
libpwcflexlm.lib(cfflex.obj) : error LNK2001: unresolved external symbol _l_n36_buf
lmgr_trl.lib(lm_njob.obj) : error LNK2001: unresolved external symbol _l_n36_buf
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@almamun Try adding the compiler flag /TC if you are getting any warning from the compiler
Lm_new.obj is used in when linking statically in Windows. You will need it if you get the "l_n36_buf" error when linking with FLEXlm libraries or use lc_new_job() function in your code.
Make sure all the libraries below are available
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
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)