summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-15 03:47:06 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-15 03:47:06 +0200
commitf37a04e66fbd1d9ab62c9876116d466873ee9a91 (patch)
tree92bb10f7a1fa13f3a87a35e1b2baec55bb0db5f8 /README
parent5d149582a6cb51b21b3dfff88532f9f50021fdf4 (diff)
downloadgmp-f37a04e66fbd1d9ab62c9876116d466873ee9a91.tar.gz
* README: Small updates.
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 8 insertions, 7 deletions
diff --git a/README b/README
index 816a2c538..1f42680b0 100644
--- a/README
+++ b/README
@@ -18,25 +18,26 @@ operations, since GNU MP in many cases has asymptotically faster algorithms.
GETTING STARTED
-First, you have to configure and compiler GNU MP. Simply typing
+First, you have to configure and compile GNU MP. Simply typing
- ./configure; make
+ ./configure; make
will normally do a reasonable job, but will not give optimal library
execution speed. So unless you're very impatient, please read the detailed
-instructions in the file INSTALL or in gmp.texi.
+instructions in gmp.texi or gmp.info.
Once you have compiled the library, you should write some small example, and
-make sure you can compile them. A typical compilation command is this:
+make sure you can compile it. A typical compilation command is this:
- gcc -g your-file.c -I<gmp-source-dir> <gmp-bin-dir>/libgmp.a -lm
+ gcc -g your-file.c -I<gmp-source-dir> <gmp-bin-dir>/.libs/libgmp.a -lm
If you have installed the library, you can simply do:
- gcc -g your-file.c -lgmp -lm
+ gcc -g your-file.c -lgmp -lm
The -lm is normally not needed, since only a few functions in GNU MP use the
-math library.
+math library. GNU MP is libtool based, so you can use that to compile and
+link if you want.
Here is a sample program that declares 2 variables, initializes them as
required, and sets one of them from a signed integer, and the other from a