Re: 8.260 STAT example fails if compiled with -std=f2008

2024-10-20 Thread Steve Kargl
On Sat, Oct 19, 2024 at 05:38:30PM +, Wyche, George G PW wrote: > > My Fortran project is based on -std=f2008. The GNU Fortran (For GCC version > 15.0.0) manual's 8.260 STAT example does not link if -std=f2008 is on the > command line: gfortran -std=f2008 test_st

Re: 8.260 STAT example fails if compiled with -std=f2008

2024-10-19 Thread FX Coudert
Hi, > My Fortran project is based on -std=f2008. The GNU Fortran (For GCC version > 15.0.0) manual’s 8.260 STAT example does not link if -std=f2008 is on the > command line: gfortran -std=f2008 test_stat.f90; ./a.out > The ld error is “undefined reference to `stat_’” Our doc (https://gcc.gnu.o