delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/26/12:32:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20011126122523.02386ef0@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 26 Nov 2001 12:30:27 -0500
To: Tianhong Chen <tianhonc AT yahoo DOT com>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: How to link against .lib files
In-Reply-To: <20011122152725.25732.qmail@web13403.mail.yahoo.com>
Mime-Version: 1.0

At 10:27 AM 11/22/2001, Tianhong Chen wrote:
>Hi, all,
>
>I have a question about how to link against .lib files
>using cygwin tools.  I read the relevant section in 
>the FAQ and also searched the mailing list archive, 
>but didn't get the answer.
>
>In the FAQ,  it mentioned the linker: LINK.EXE, what
>if
>I have only LD from GNU binutiles package?
>
>Could the instructions be more elaborated.  The
>following is what I couldn't understand:
>1) Build a C file == Edit a C file?
>2) Build a Dummy LibMain: what should be in LibMain
>3) What is a .def file?
>4) Is it possible to use "LD" instead of "LINKER.EXE"
>
>It'll be really appreciated for any answers or points 
>of references to this question.


This FAQ is a bit dated and slanted toward the use of MSVC's LINK 
utility.  For many MSVC .lib files, you can just list them as objects
when invoking gcc/g++.  Usually, you can substitute the DLL rather than
the .lib too (presumably you would do this only if you don't have a 
.lib).  If the symbols in the lib/DLL are available, you're done.  If
not, you need to follow the FAQ and learn about how MSVC creates DLLs
and exposes the internal functions (see msdn.microsoft.com).



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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