Problems linking program

Larry Hall (RFK Partners, Inc)
Thu Apr 18 12:37:00 GMT 2002

At 02:16 PM 4/18/2002, Matt Minnis wrote:
>I am having trouble linking a program:
>What libraries are these found in?
>The errors are below:
>/usr/lib/libg.a(vfprintf.o): In function `vfprintf_r':
>./../../src/newlib/libc/stdio/vfprintf.c:774: undefined reference to `__umoddi3'
>./../../src/newlib/libc/stdio/vfprintf.c:775: undefined reference to `__udivdi3'
>/usr/lib/libg.a(stdio.o): In function `_stextmode':
>../../../../src/newlib/libc/stdio/stdio.c:127: undefined reference to `_cygwin_i
>make: *** [] Error 1

In all seriousness, 'nm' on the available libraries will tell you this.

But I'm going to guess you won't find what you want.  It looks 
to me like you have two (other) problems:

    1. You're building with against some old Cygwin DLL code

    2. You're trying to build the GNU C library

You can rectify (1).  Good luck with (2).  You'll need it! ;-)

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

Unsubscribe info:
Bug reporting:

More information about the Cygwin mailing list