Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3E56F571.8030405@rfk.com> Date: Fri, 21 Feb 2003 22:58:41 -0500 From: "Larry Hall (RFK Partners, Inc.)" Reply-To: lhall AT rfk DOT com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steve Baldwin CC: cygwin AT cygwin DOT com Subject: Re: Missing (?) function mallinfo References: <000001c2da09$ce4a6ca0$3264a8c0 AT AUSTBMOBILE> In-Reply-To: <000001c2da09$ce4a6ca0$3264a8c0@AUSTBMOBILE> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 > #include > #include > > 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 AT rfk DOT 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/