I tried the meson.build tested by @thomasarsouze known to not work:
project('PyRATP', 'fortran',
version : '0.1',
default_options : ['warning_level=3'])
sources = files([
'src/f90/mod_Cocnstant_ValuesF2PY.f90',
'src/f90/mod_Grid3DF2PY_64bit.f90',
'src/f90/mod_SkyvaultF2PY.f90',
'src/f90/mod_Vegetation_TypesF2PY.f90',
'src/f90/mod_Dir_InterceptionF2PY.f90',
'src/f90/mod_Hemi_InterceptionF2PY.f90',
'src/f90/mod_MicrometeoF2PY.f90',
'src/f90/mod_Shortwave_BalanceF2PY.f90',
'src/f90/mod_Energy_BalanceF2PY.f90',
'src/f90/mod_PhotosynthesisF2PY.f90',
'src/f90/mod_MinerPhenoF2PY.f90',
'src/f90/prog_RATP.f90'
])
executable('PyRATP', sources, install : true)
I got the error
/home/bauget/miniconda3/envs/pyratp/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/bauget/miniconda3/envs/pyratp/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib/../lib/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
But I got exactly the same error with a very simple case that can be found here
I tried the meson.build tested by @thomasarsouze known to not work:
I got the error
But I got exactly the same error with a very simple case that can be found here