This is the mail archive of the cygwin@cygwin.com 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]

Missing (?) function mallinfo


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


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


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