Skip to content

Commit 016447c

Browse files
authored
Merge pull request #59 from sourceryinstitute/update-readme
doc(example/README.md): add gfortran instructions
2 parents ab51305 + 86f3485 commit 016447c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

example/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,16 @@ This example exhibits several important subtleties:
2222
perform shallow copies, thereby creating new references to
2323
`user_object` without copying the object.
2424

25-
Run the example as follows:
25+
With `gfortran` 13.0.1 20230321 or later in your `PATH`, run the example
26+
as follows:
27+
```
28+
fpm run --example user_object_smart_pointer
29+
```
30+
or with the NAG Fortran compiler in your `PATH`, use
2631
```
2732
fpm run --example user_object_smart_pointer --compiler nagfor --flag -fpp
2833
```
29-
which should produce the following output:
34+
either of which should produce the following output:
3035
```
3136
Allocating user_object pointer.
3237
Defining smart_pointer_1.

0 commit comments

Comments
 (0)