- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
How do I correct the following error?
read(*,'(A)') filename
open(UNIT=lu, FILE=filename, STATUS='OLD', ACTION='READ',&
ISOSTAT=ierror)
C:My DocumentsFortranexer_4least_squares_fit.for(29) : Error: Syntax error, found '&' when expecting one of: * ...
open(UNIT=lu,FILE=filename,STATUS='OLD',ACTION='READ',&
What should I use instead of ?&? if I want to continue on another line?
(Visual Fortran 5.0, FORTRAN f90)
read(*,'(A)') filename
open(UNIT=lu, FILE=filename, STATUS='OLD', ACTION='READ',&
ISOSTAT=ierror)
C:My DocumentsFortranexer_4least_squares_fit.for(29) : Error: Syntax error, found '&' when expecting one of: *
open(UNIT=lu,FILE=filename,STATUS='OLD',ACTION='READ',&
What should I use instead of ?&? if I want to continue on another line?
(Visual Fortran 5.0, FORTRAN f90)
- Balises:
- Intel® Fortran Compiler
Lien copié
1 Répondre
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
The ampersand is valid only for free source format. Make sure you are not using fixed or tab source formats. If your source has a type of .FOR try using .F90 instead.
James
James
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable