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

cygwin b19 and gmp-2.0.2


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".


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