<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY id=role_body style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial"
bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7><FONT id=role_document
face=Arial color=#000000 size=2>
<DIV>I am having problems getting gmp up and running. The description of
my problem is both below and in the attached file. The attachment is a
wordpad text file. I'm not certain which is the preferred mode in this
forum. I'm sure I made a simple error, but I'm at a loss what to try
next.</DIV>
<DIV> </DIV>
<DIV>I am trying to get gmp running on my system.</DIV>
<DIV> </DIV>
<DIV>cygwin ver 2.457.2.2 with windows XP.<BR>gcc-g++-3.4.4-1<BR>gmp-4.1.4</DIV>
<DIV> </DIV>
<DIV>gcc was downloaded and installed thru cygwin<BR>it appears to be working
OK</DIV>
<DIV> </DIV>
<DIV>gmp was downloaded from swox<BR> I didn't find it at cygwin; is it
there?<BR>gmp was installed using ./configure<BR>followed by a make<BR>make
check gave all passes</DIV>
<DIV> </DIV>
<DIV>I tried the following program "progname"</DIV>
<DIV> </DIV>
<DIV> #include <stdio.h><BR> #include <gmp.h></DIV>
<DIV> </DIV>
<DIV> main()<BR> {<BR> mpz_t
n;<BR> mpz_init(n);<BR> }</DIV>
<DIV> </DIV>
<DIV>c++ -I/gmp-4.1.4 progname</DIV>
<DIV> </DIV>
<DIV>I had to use the -I option for c++ to find the gmp.h file<BR> Could I
have installed it differently to avoid this?</DIV>
<DIV> </DIV>
<DIV>The above resulted the error: undefined reference to '___gmpz_int'<BR>I
tried using -L/libgmp.la without any change</DIV>
<DIV> </DIV>
<DIV>What am I doing wrong?<BR>Is there a better way to install gmp?<BR>I am not
a systems person; just a c++ user that would like to have
gmp.<BR></DIV></FONT></BODY></HTML>