diff --git a/README.md b/README.md
index 4e448130f026b6335e3163b45d79b2bee971f50b..c900518e3e99ecec7a4e2b5ea2b89e38019353c1 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ See also [this note](https://git.kern.phys.au.dk/oliskir/bedepe/blob/master/spin
 
 # Compile
 First you must install CERNLIB. In Ubuntu this is easily accomplished with the command ```sudo apt-get install cernlib```.
-Bedepe may then be compiled with the command ```gfortran bedepe.out bedepe.f -static -lpacklib -lkernlib -lmathlib```.
+Bedepe may then be compiled with the command ```gfortran -o bedepe.out bedepe.f -static -lpacklib -lkernlib -lmathlib```.
 This creates the executable file ```bedepe.out```.
 
 # Output and input
@@ -53,4 +53,4 @@ Finally, the program should be rewritten in C++ and linked to ROOT libraries ins
 
 # References
 - E. T. H. Clifford et al., Nucl. Phys. A 493, 293 (1989). 
-- B. R. Holstein, Rev. Mod. Phys. 46, 789 (1974).
\ No newline at end of file
+- B. R. Holstein, Rev. Mod. Phys. 46, 789 (1974).