delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/22/14:41:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020422143622.02a9ff00@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Mon, 22 Apr 2002 14:38:24 -0400
To: "Matt Minnis" <mminnis AT prefres DOT com>, cygwin AT sources DOT redhat DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Problems linking program
In-Reply-To: <5.1.0.14.2.20020422132917.025e76d0@mail.prefres.com>
Mime-Version: 1.0

At 02:29 PM 4/22/2002, Matt Minnis wrote:
>Larry,
>
>What I am trying to do is guild a library for working with images called GD.
>It is for dynamically creating images, and I got it from:
>http://www.boutell.com/gd/
>
>The libraries and order that I am using is:
>LIBS=-lfreetype -lgd -lz -ljpeg -lpng -lcygwin
>
>I have resolved most of the issues now, but now I seem to be getting an error about a DLL linkage?
>
>Here is the cygwin1.dll that I am using.
>where cygwin1.dll
>D:\cygwin\bin\cygwin1.dll
>
>Here is the current error that I am getting.
>
>/source/gd-2.0.1 >make install
>MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>         rm -f libgd.so.2.0.0 2>/dev/null
>The system cannot find the path specified.
>         ld -shared -o libgd.so.2.0.0 gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o
>gd_io_file.o gd_ss.o gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o   gdfontt.o gdfonts.o
>  gdfontmb.o gdfontl.o gdfontg.o   gdtables.o gdft.o gdcache.o gdkanji.o wbmp.o
>  gd_wbmp.o gdhelpers.o gd_topal.o -lfreetype -lgd -lz -ljpeg -lpng -lcygwin
>/usr/lib/libcygwin.a(_cygwin_crt0_common.o)(.text+0xe6): undefined reference to
>`GetModuleHandleA AT 4'
>
>** error 1 ** deleting libgd.so.2.0.0


OK, I'm not sure why you sent this again to the list when I answered the 
same query that you sent me off-list.  But in the interest of complete
symmetry, I'll cut and paste the response I already gave you privately.


------------- cut and paste --------------------------------------------

OK.  First, you shouldn't need to list -lcygwin.  It gets added automatically.
Fortunately now, it should be harmless to list it however.  That hasn't always
been the case so it's good not to get in the habit of adding it when it's not
needed.

'GetModuleHandle()' is a Win32 API.  You apparently have not installed the 
w32api package.  Rerun setup and do so.



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