This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems linking program

At 02:29 PM 4/22/2002, Matt Minnis wrote:
>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:
>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
>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 2>/dev/null
>The system cannot find the path specified.
>         ld -shared -o 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
>** error 1 ** deleting

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

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

Larry Hall                    
RFK Partners, Inc.            
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]