cygwin b19 and gmp-2.0.2

David Goldberg goldberg@parc.xerox.com
Sat Apr 4 01:12:00 GMT 1998


I compiled the gnu multiple precision library gmp-2.0.2
with both cygwin version b19 and mingw32.  When I used the resulting
library, I had a problem with cygwin that did not occur with mingw32
(this is under NT 4.0).

When compiling a program using the gmp routine mpz_out_str()
I got the error ___imp__iob undefined.

Here is the program and the output of gcc:

bash-2.01$ cat bug.c
#include <stdio.h>
#include "gmp.h"

main(argc, argv)
     char **argv;
{
    mpz_t x;

    mpz_init_set_ui(x, 23);
    mpz_out_str(stdout, 10, x);
    printf("\n\n");
    fflush(stdout);
}
bash-2.01$
bash-2.01$ gcc bug.c -L. -lgmp
./libgmp.a(out_str.o): In function `mpz_out_str':
/TEMP/gmp/mpz/out_str.c:47: undefined reference to `__imp__iob'
bash-2.01$
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list