This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/15280] New: Fortran9x commandline not accessable


(Tested with GNU Fortran 95 (GCC 3.5-tree-ssa 20040503 (Fedora Core Rawhide
3.5ssa-snapshot)) -- gcc-gfortran-ssa-3.5ssa-0.20040503.snapshot on SUSE 9.0)

Using the command line arguments is not possible using either the Fortran 2003
commands or f2kcli with the fortran90 file (i.e. IARGC/GETARG commands).
Expected: Either f2003 is supported directly or the IARGC/GETARG are supported.

Using the Fortan 2003 draft command line interfaces directly
(http://j3-fortran.org/doc/standing/2003/007.pdf) doesn't work since
get_command_argument etc. are not supported by gfortran.

Using http://www.winteracter.com/f2kcli/ (Fortran 90 file), one gets linking errors:
gfortran-ssa  -c f2kcli.f90 -o f2kcli.o
gfortran-ssa  -c average.f90 -o average.o
gfortran-ssa  -o average f2kcli.o average.o
f2kcli.o(.text+0x78): In function `__f2kcli__get_command_argument':
: undefined reference to `iargc_'
f2kcli.o(.text+0xfa): In function `__f2kcli__get_command_argument':
: undefined reference to `_gfortran_getarg'
f2kcli.o(.text+0x14a): In function `__f2kcli__get_command_argument':
: undefined reference to `_gfortran_getarg'
f2kcli.o(.text+0x183): In function `__f2kcli__command_argument_count':
: undefined reference to `iargc_'
f2kcli.o(.text+0x1a0): In function `__f2kcli__get_command':
: undefined reference to `iargc_'
f2kcli.o(.text+0x1f5): In function `__f2kcli__get_command':
: undefined reference to `_gfortran_getarg'
collect2: ld returned 1 exit status

-- 
           Summary: Fortran9x commandline not accessable
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobias dot burnus at physik dot fu-berlin dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15280


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]