]> www.ginac.de Git - ginac.git/commitdiff
[DOC] Change library order in tutorial example.
authorRichard Kreckel <kreckel@ginac.de>
Fri, 3 May 2019 19:14:20 +0000 (21:14 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Fri, 3 May 2019 19:14:20 +0000 (21:14 +0200)
Some systems care about library ordering: Dependent libraries must be
linked last. Let's link with -lginac before -lcln in the example so it
will work on any system, even on Windows.

doc/tutorial/ginac.texi

index db78219de62a3cd93deaa2ca334362e4929e4be2..331c21254fff79e0ab1df7f23a375d0420c910e4 100644 (file)
@@ -201,7 +201,7 @@ Assuming the file is called @file{hello.cc}, on our system we can compile
 and run it like this:
 
 @example
-$ c++ hello.cc -o hello -lcln -lginac
+$ c++ hello.cc -o hello -lginac -lcln
 $ ./hello
 355687428096000*x*y+20922789888000*y^2+6402373705728000*x^2
 @end example