Skip to content

doc(example/README.md): add gfortran instructions #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ This example exhibits several important subtleties:
perform shallow copies, thereby creating new references to
`user_object` without copying the object.

Run the example as follows:
With `gfortran` 13.0.1 20230321 or later in your `PATH`, run the example
as follows:
```
fpm run --example user_object_smart_pointer
```
or with the NAG Fortran compiler in your `PATH`, use
```
fpm run --example user_object_smart_pointer --compiler nagfor --flag -fpp
```
which should produce the following output:
either of which should produce the following output:
```
Allocating user_object pointer.
Defining smart_pointer_1.
Expand Down