File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 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 &ge ; 7
26+ * Clang &ge ; 6
27+ * Intel oneAPI
28+
2229In 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
3138ctest --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
3653For MacOS with Apple's Clang and Homebrew GCC,
You can’t perform that action at this time.
0 commit comments