delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/15/18:16:56

From: batanov AT ascinc DOT com (Alexander Batanov)
Subject: linking with vc-built dlls
15 Dec 1997 18:16:56 -0800 :
Message-ID: <01BD097E.5E5D8B40.cygnus.gnu-win32@banach.ascinc.com>
Mime-Version: 1.0
To: "'GNU-Win32 AT cygnus DOT com'" <GNU-Win32 AT cygnus DOT com>
Cc: "'batanov AT ascinc DOT com'" <batanov AT ascinc DOT com>

Dear all,

Are there any special considerations for linking object files built with Cygnus g++ with dlls built with Visual C++?

Dll has a C interface, so when I do nm on .lib file I see symbols which are not decorated but prefixed with a single underscore (maybe this is a problem). Quikview on .dll file shows the same symbols without leading underscores, though.

I am integrating a gcc project with FlexLM license manager.
mylibrary.lib is in the working directory and mylibrary.dll is in /winnt/system32.
When I am trying to do this 

g++ mylibrary.lib myobjectfile.o -o myproject.exe

I am getting some "undefined refrence" errors:

undefined reference to `lp_checkout'.


Thanks,
Alex Batanov
Software Engineer
Alternative System Concepts, Inc.
22 Haverhill Rd
Windham, NH
03087-0128
(603) 437-2234
(603) 437-2722 fax
batanov AT ascinc DOT com
-
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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019