Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Problem linking with Flexlm library in Windows

Occasional Visitor

Problem linking with Flexlm library in Windows

[ Edited ]

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
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
Acclaimed Contributor 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.