delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/11/09:47:35

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: <20001011134620.29289.qmail@web115.yahoomail.com>
Date: Wed, 11 Oct 2000 06:46:20 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: cooperation of cygwin and NuTCracker ??
To: Frank Moehle <Frank DOT Moehle AT Informatik DOT Uni-Oldenburg DOT DE>,
cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

--- Frank Moehle <Frank DOT Moehle AT Informatik DOT Uni-Oldenburg DOT DE> wrote:
> Hello,

Hi Frank,

> 
> We are going to use cygwin to port a set of unix programs from
> solaris to Windows NT. (Un)fortunately, we use a library from
> am external product. This Product has also been ported from solaris
> to NT, but using "NuTCracker".
> We only have access to the final .DLL of this external product
> (of cource shipped with the NuTCracker runtime enviroment).
> 

I don't know NuTCracker but I do see a problem.

> 
> ----
> API_OBJ = anaport.a
> API_DLL_NAME = anaport.dll
> API_DLL = /cygdrive/y/stmm/misc/ANAPORT/$(API_DLL_NAME)
> API_DEF = anaport.def
> 
> $(API_OBJ): $(API_DEF)
>         dlltool --def $< --dllname $(API_DLL_NAME) \
>           --output-lib $@ $(API_DLL)
>  
> $(API_DEF): $(API_DLL)
>         echo EXPORTS > $@
>         nm $< | grep ' T _stmm' | sed 's/.* T _//' >> $@
> -----
>  
> and the went on as usual:
> 
> ----
> LIBRARIES = -l<our own stuff.a> -lm
> 

The problem is that you've use -lm.  Currently the libm.a is a symbolic link to
libcygwin.a and ld can't manage the same library with different names.  Remove
the -lm and see if that helps.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd AT yahoo DOT com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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