Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem linking with Flexlm library in Windows

montylee
Occasional Visitor

Problem linking with Flexlm library in Windows

Hi,

I am working on a build of a proprietary software using Mingw (Gcc compiler) on windows. Our product uses Flexlm for licensing purposes.
Our build process has 2 parts: C build and CPP Build.
I was able to build our security module (C Build) using gcc by linking the module with flexlm library which had been built using VC++ compiler and the build is working fine.

Now in CPP build, i am facing a problem. When i link to the same flexlm library in CPP build, it gives an error of "undefined symbols". In this case, i am linking using g++. I get the following error:

"Cannot export LMGR326B_NULL_THUNK_DATA: symbol not found"

I am using the following linking options:
g++ -fPIC -shared -o output.dll obj1.o obj2.o -llmgr326b

THe Flexlm library name is: "lmgr326b.lib"

How can i build my module using the same flexlm library?

Thanks in advance

Regards
raman

 

 

P.S. this thread has been moved from HP-UX > General to languages - HP Forums moderator

2 REPLIES
seb_dyn
Occasional Visitor

Re: Problem linking with Flexlm library in Windows

Although this thread was started a long time ago, may I ask if you succeeded in linking your application against FlexLM using MingW?

 

Best regards

Sebastian

Highlighted
Dennis Handly
Acclaimed Contributor

Re: Problem linking with Flexlm library in Windows

Is this for HP-UX or Windows?

 

>The Flexlm library name is: "lmgr326b.lib"

 

Shlibs on HP-UX should end in .so or .sl.