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 Forum
- :
- Re: error building c++ project
Subscribe
- 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
Jun 23, 2010
05:57 AM
error building c++ project
Hi there,
I'm trying to include Flexible API calls in a dll project in visual c 2005 sp1.
I've included these files
#include "lmclient.h"
#include "lm_attr.h"
and try to statically link with flex api libraries this way
#pragma comment(lib, "libcrvs.lib")
#pragma comment(lib, "libsb.lib")
#pragma comment(lib, "lmgr_trl.lib")
#pragma comment(lib, "libnoact.lib")
#pragma comment(lib, "lmgr_dongle_stub.lib")
in additional dependencies I've added "lm_new.obj"
When I try to build my project I'm getting this error
lmgr_trl.lib(l_getenv.obj) : error LNK2019: unresolved external symbol __environ referenced in function _reXLbIFghN5QQCVhglc5m
can anyone help me with that?
Thank you.
Alberto.
I'm trying to include Flexible API calls in a dll project in visual c 2005 sp1.
I've included these files
#include "lmclient.h"
#include "lm_attr.h"
and try to statically link with flex api libraries this way
#pragma comment(lib, "libcrvs.lib")
#pragma comment(lib, "libsb.lib")
#pragma comment(lib, "lmgr_trl.lib")
#pragma comment(lib, "libnoact.lib")
#pragma comment(lib, "lmgr_dongle_stub.lib")
in additional dependencies I've added "lm_new.obj"
When I try to build my project I'm getting this error
lmgr_trl.lib(l_getenv.obj) : error LNK2019: unresolved external symbol __environ referenced in function _reXLbIFghN5QQCVhglc5m
can anyone help me with that?
Thank you.
Alberto.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 23, 2010
03:33 PM
Turning off default libraries is a pain in the 😮 ...I got this to finally work using this order.
However, it throws 2149 warnings about second definitions and duplicate symbols during link. Seems to work ok, tho.
P.S. I'm using the MD libs for now because I couldn't get it to link with the static ones in my application without massive amounts of linker errors.
***
EDIT: This is the link order I got 0 errors/0 warnings with. Again, with md libs, unfortunately.
libFNPload.lib libact_md.lib lm_new_md.obj libsb_md.lib libcrvs_md.lib lmgr_md_trl.lib FNP_Act_Installer.lib oldnames.lib Wbemuuid.lib lmgr_dongle_stub.lib
Name="VCLibrarianTool"
AdditionalDependencies="libFNPload.lib libact_md.lib lm_new_md.obj libsb_md.lib libcrvs_md.lib lmgr_md_trl.lib lmgr_md.lib FNP_Act_Installer.lib lmgrs_md.lib lmgras_md.lib oldnames.lib kernel32.lib user32.lib netapi32.lib advapi32.lib gdi32.lib comdlg32.lib comctl32.lib wsock32.lib Rpcrt4.lib oleaut32.lib Ole32.lib Wbemuuid.lib msvcrt.lib lmgr_dongle_stub.lib"
OutputFile="$(OutDir)/MYLIBRARY.lib"
AdditionalLibraryDirectories=""../../FLEXLM/$(PlatformName)";"../../FLEXLM/$(PlatformName)/activation/lib""
IgnoreAllDefaultLibraries="true"
IgnoreDefaultLibraryNames=""
However, it throws 2149 warnings about second definitions and duplicate symbols during link. Seems to work ok, tho.
P.S. I'm using the MD libs for now because I couldn't get it to link with the static ones in my application without massive amounts of linker errors.
***
EDIT: This is the link order I got 0 errors/0 warnings with. Again, with md libs, unfortunately.
libFNPload.lib libact_md.lib lm_new_md.obj libsb_md.lib libcrvs_md.lib lmgr_md_trl.lib FNP_Act_Installer.lib oldnames.lib Wbemuuid.lib lmgr_dongle_stub.lib
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)