delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/18/00:22:40

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sat, 18 Oct 2003 00:22:15 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Charles Owens <charles DOT n DOT owens AT enc DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: Perl - trying to install libwin32
In-Reply-To: <3F90BA48.7080809@enc.edu>
Message-ID: <Pine.GSO.4.56.0310180019130.15002@slinky.cs.nyu.edu>
References: <3F7A4288 DOT 90001 AT enc DOT edu> <10689931569 DOT 20031001114521 AT familiehaase DOT de>
<3F90BA48 DOT 7080809 AT enc DOT edu>
Importance: Normal
MIME-Version: 1.0

Charles,

Linkers like forward references, and don't understand back references.
The libraries should go to the very end of the line, after the object
files (and I believe the *FLAGS vars usually get put right after the
executable).  You might need to use some other variable for this.

If the libraries are at the end of the gcc invocation, please post the
exact gcc command you get when compiling.
	Igor

On Fri, 17 Oct 2003, Charles Owens wrote:

> Okay... (just now getting back to this).
>
> Thanks for the pointer... but it must be something else.
>
> Since the build is failing in APIFile I've added this to APIFile/Makefile
>
>    LDDLFLAGS = -L/usr/lib/w32api -lkernel32 -I/usr/include/w32api
>
> When I run 'make' I do see that the gcc line in question now has these
> options... but the link fails in the same way as before. (lots of
> unresolved reverences, eg. "...File.c: undefined reference to
> '_CloseHandle'")
>
> Any thoughts on what my next step should be?
>
> Thanks much,
>
> Charles
>
>
> Gerrit P. Haase wrote:
>
> >>I'm also seeing the same problem as Paul when trying to compile
> >>libwin32-0.191 (patched) on cygwin.  This is with both gcc 3.3.1 and gcc
> >>3.2 20020927 (prerelease) .
> >>
> >>Any suggestions?  Here's what "make" is giving me (with gcc 3.2):
> >
> >Try adding libkernel32.a (-L/usr/lib/w32api -lkernel32) to the linkline?
> >
> >Gerrit

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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