Skip to content

Commit 0b5c0ac

Browse files
committed
doc
1 parent 3995514 commit 0b5c0ac

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Call Fortran from C++
1+
# Interoperability examples between C, C++ and Fortran
22

33
![cmake](https://github.com/scivision/fortran-c-cpp-interface/workflows/ci_cmake/badge.svg)
44
![meson](https://github.com/scivision/fortran-c-cpp-interface/workflows/ci_meson/badge.svg)
@@ -19,6 +19,13 @@ Demonstrate linking of
1919
* C and C++ program calling Fortran libraries
2020
* Fortran program calling C and C++ libraries
2121

22+
We assume the compilers are C++11 and Fortran 2018 capable.
23+
We CI test with compilers including:
24+
25+
* GCC ≥ 7
26+
* Clang ≥ 6
27+
* Intel oneAPI
28+
2229
In general, strongly avoid the FortranCInterface of CMake and mangling function names--just use Fortran 2003 standard `bind(C)`
2330

2431
## build
@@ -31,6 +38,16 @@ cmake --build build
3138
ctest --test-dir build
3239
```
3340

41+
OR from Meson
42+
43+
```sh
44+
meson build
45+
meson compile -C build
46+
meson test -C build
47+
```
48+
49+
50+
3451
### MacOS
3552

3653
For MacOS with Apple's Clang and Homebrew GCC,

0 commit comments

Comments
 (0)