Subject: Re: gcc & g77 trouble with library routines: "linked to missing export CYGWIN.DLL:strlwr"
From: [email-masked] (Fergus Henderson)

1 Apr 1998 22:54:03 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: [email-masked]
Cc: [email-masked], [email-masked]

On 28-Mar-1998, Wolz <[email-masked]> wrote:
> I prepared the following test program to demonstrate:
> 
> #testc.c
> 
> #include "string.h"
> extern char * strlwr(char *);
> main () {
>   char testchar[]="X";
>   strlwr(testchar);
> }

strlwr() is a non-standard function.
Any programs that use it will not be portable.

My guess as to why it links but won't run is that
the old (b18) cygwin.dll used to export strlwr(),
whereas cygwinb19.dll does not export it, but when
removing the function someone forgot to remove it from
the export list.

> One solution would be to write replacement routines, where necessary.

Right.

But don't call the replacement strlwr(), since names starting with str[a-z]*
are reserved for use by the implementation.  Call it say my_strlwr().

-- 
Fergus Henderson <[email-masked]>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger [email-masked]        |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".