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: Missing (?) function mallinfo

Steve Baldwin wrote:
I'm having problems porting some Unix code to cygwin.  Here's a small
sample, and the error I'm seeing.  Any help appreciated.


[cdev]$ cat a.c
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>

main (int argc, char **argv) {
        struct mallinfo         mi ;

        mi = mallinfo() ;
[cdev]$ gcc a.c -o a
undefined reference to `_mallinfo'
collect2: ld returned 1 exit status

Looks like this comes from newlib and hasn't been exported from cygwin1.dll
in cygwin.din (Chris Faylor added a whole bunch of stuff to Cygwin
snapshots from newlib last week but this isn't one of them... otherwise
I'd suggest a snapshot ;-) )

Want to submit a patch for this?

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

-- Unsubscribe info: Bug reporting: Documentation: FAQ:

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