delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/04/19:39:40

From: goldberg AT parc DOT xerox DOT com (David Goldberg)
Subject: cygwin b19 and gmp-2.0.2
4 Apr 1998 19:39:40 -0800 :
Message-ID: <3.0.32.19980403224659.00cc9a70.cygnus.gnu-win32@speed.parc.xerox.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019