Skip to content

Commit 86330f6

Browse files
committed
link cstdlib when linking with fortran
1 parent a47e951 commit 86330f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ subdir('fortran')
88
fortran_cxx_math = executable('fortran_cxx_math',
99
sources: files('fortran/math_main.f90'),
1010
link_with: math_cxx,
11+
dependencies: cstdlib,
1112
link_language: 'fortran'
1213
)
1314
test('Fortran C++ math', fortran_cxx_math, timeout: 5)
@@ -24,6 +25,7 @@ test('Fortran C++ struct', fortran_cxx_struct, timeout: 5)
2425
fortran_cxx_err = executable('fortran_cxx_err',
2526
sources: files('fortran/error_main.f90'),
2627
link_with: error_cxx,
28+
dependencies: cstdlib,
2729
link_language: 'fortran'
2830
)
2931
test('Fortran C++ error', fortran_cxx_err,

0 commit comments

Comments
 (0)