Missing (?) function mallinfo
Larry Hall (RFK Partners, Inc.)
lhall@rfk.com
Sat Feb 22 12:06:00 GMT 2003
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.
>
> Steve
>
> [cdev]$ cat a.c
> #include <stdio.h>
> #include <stdlib.h>
> #include <malloc.h>
>
> int
> main (int argc, char **argv) {
> struct mallinfo mi ;
>
> mi = mallinfo() ;
> }
> [cdev]$ gcc a.c -o a
> /cygdrive/c/DOCUME~1/STBALD~1/LOCALS~1/Temp/cc6nUjGR.o(.text+0x25):a.c:
> 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@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list