delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/11/14:52:10

Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199902111452.IAA16264@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: LOCALHOST.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: Pierre-Henri Jouneau <Pierre-Henri DOT Jouneau AT insa-lyon DOT fr>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Problem with egcs-1.1.1/mingw32
In-reply-to: Your message of "Thu, 11 Feb 1999 12:57:53 +0100."
<36C2C5C1 DOT E4E8F1D8 AT insa-lyon DOT fr>
Date: Thu, 11 Feb 1999 08:52:01 -0600
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Pierre-Henri Jouneau <Pierre-Henri DOT Jouneau AT insa-lyon DOT fr> writes:
> When I'am trying to compile a fortran program, which uses a mixed
> C/fortran library and the graphic gd library, with the last version of
> egcs-1.1.1/mingw32, I get the following result:
> 
> g77 -o ../exe/ac1 ac1ems.o libems.a -L../gif -lgd -lm
> ../gif/libgd.a(gd.o)(.text+0x3278):gd.c: undefined reference to
> `_impure_ptr'

You're mixing cygwin objects with mingw32. That's a no no.

> I have also tried to use -lC, and then I get:

Huh? What's -lC? There is no -lC for mingw32.

> 
> g77 -o ../exe/ac1 ac1ems.o libems.a -L../gif -lgd -lm -lC
> /cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libC.a(freer.o): In
> function `malloc_trim_r':

Again, you're mixing cygwin objects/libraries with mingw32.

You say you're using egcs-1.1.1/mingw32, but it looks like you're using
Cygwin gcc in -mno-cygwin mode. Is that true?

If that is so, I've posted many times here on how to get all of this to
work, and I'm not about to repeat it. Get the mingw32 target libraries
from my site and make sure you link with those.

> 
> Is this a bug, or do I make a mistake. It works well under Linux, and it
> was also working with a previous version of egcs!
> 

From what you've posted, it looks like a misunderstanding on your part,
but that doesn't preclude a bug of course. Whether it works under Linux
is irrelevant.

Regards,
Mumit


--   
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