summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-06-09 01:32:19 +0200
committerKevin Ryde <user42@zip.com.au>2000-06-09 01:32:19 +0200
commitd659ec24887aac6814434db79e53f32ba439ff55 (patch)
tree62c0484770ea3408b1151b7898cecf7d8ea7665b /INSTALL
parent9e0d9abda79236e60f665cae86c95beb13714838 (diff)
downloadgmp-d659ec24887aac6814434db79e53f32ba439ff55.tar.gz
* INSTALL: Remove -lm from instructions.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL9
1 files changed, 4 insertions, 5 deletions
diff --git a/INSTALL b/INSTALL
index 2f76b523d..d36bce494 100644
--- a/INSTALL
+++ b/INSTALL
@@ -97,11 +97,10 @@ Now you have to compile your test program, and link it with the GMP library.
Assuming your working directory is still the gmp source directory, and your
source file is called example.c, enter:
- gcc -g -I. example.c .libs/libgmp.a -lm
+ gcc -g -I. example.c .libs/libgmp.a
-The -lm is normally not needed, since only a few functions in GMP use the math
-library. After installing, the command becomes: gcc -g example.c -lgmp -lm
-GMP is libtool based, and you can use that to link if you want.
+After installing, the command becomes: "gcc -g example.c -lgmp". GMP is
+libtool based, and you can use that to link if you want.
Now try to run the example:
@@ -123,7 +122,7 @@ To run a set of tests, do "make check". This will take a while.
To create the printable documentation from the texinfo source, type "make
gmp.dvi" or "make gmp.ps". This requires various "tex" commands.
-To install the library, do "make install" (you can then use -lgmp instead of
+To install the library, do "make install" (then you can use -lgmp instead of
.libs/libgmp.a).
If you decide to use GMP, it is a good idea you read at least the chapter "GMP