From: adrian AT adttx DOT sps DOT mot DOT com (Adrian Lao) Subject: Re: Globetrotter FLEX/LM 17 Sep 1998 12:38:36 -0700 Message-ID: <199809161544.KAA21219.cygnus.gnu-win32@rudys.sps.mot.com> References: <3 DOT 0 DOT 3 DOT 32 DOT 19980915193354 DOT 00b829c0 AT appr> To: Todd Massey Cc: gnu-win32 AT cygnus DOT com Todd> Has anyone successfully linked in the globetrotter flex/lm license manager. Todd> If so could you e-mail me directly on how to do this. Yes, I've tried it on NT 4.0. However, I've linked to the DLL only, not the static library. Assuming you're using the simple trivial AP, here's what you need to do: (1) save the the attached file in a file called "flexlm.def" (2) run the following (assuming you're in the .../flexlm/v6.1/i86_?? directory): dlltool --as=as --dllname lmgr326b.dll --def flexlm.def --output-lib liblmgr326b.a You can now link the liblmgr326b.a library into your application just like any other .a libraries (but it requires lmgr326b.dll during runtime). Also, when including lmpolicy.h, make sure you've defined WINNT and FLEXLM_DLL on NT, I'm not sured whether you need to do this on Window 95/98. Hope this help. Adrian --------------------- flexlm.def -------------- EXPORTS lp lp_code lp_checkout lp_checkin lp_errstring lp_warning lp_perror lp_pwarn lp_heartbeat - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".