LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 07-29-2019, 07:00 AM   #1
Fpaul8
LQ Newbie
 
Registered: Jul 2019
Posts: 6

Rep: Reputation: Disabled
gfortran compiles old fortran 4 code; gfortran gives errors. Why?


Hi all,

I am trying to compile old f4 code in gfortran , but it gives the following errors:

vbs.f:65.21:

CALL ASSIGN(2,,-1,'NEW')
1
Error: Syntax error in argument list at (1)
vbs.f:66.21:

K7=IPOKE("44,"40000)
1
Error: Syntax error in argument list at (1)
vbs.f:149.18:

READ (1, *) (TIO (I), I=1, NN2)
1
Error: Expected variable in READ statement at (1)
vbs.f:150.18:

READ (1, *) (SIO (I), I=1, NN2)
1
Error: Expected variable in READ statement at (1)


What's going on here?
How can I make gfortran compile the code?

Thanks!
 
Old 07-29-2019, 07:46 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,188

Rep: Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181Reputation: 4181
is this the same issue? https://www.linuxquestions.org/quest...1-a-4175658012

I would suggest you to check the syntax of your code.
Furthermore posting incomplete and incorrect [lines of] code makes hard (or impossible) to find out what's going on.

additionally you may try this: http://fortrananalyser.ephyslab.uvig...ex.php?lang=en (or similar)

Last edited by pan64; 07-29-2019 at 07:54 AM.
 
1 members found this post helpful.
Old 08-01-2019, 11:09 PM   #3
Fpaul8
LQ Newbie
 
Registered: Jul 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Pan64,

Thank you for your help!
Yes it is. This is the same issue.
I found mistakes.
When I describing the variables, I made a typo
and instead TIO and SIO I put zero on the end (TI0 and SI0).

However when I traied to dounload Fortran
Analyzer as you recomended my Mac didn't allowed to do it.
I am trying to resolve it now.

Sincerely,
Paul8
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gfortran compiles old fortran 4 code; gfortran gives errors. Why? Fpaul8 Linux - Newbie 2 07-29-2019 09:48 AM
Program compiles and runs on 12.0-32 compiles on 14.0-64 but won't run. stf92 Slackware 6 01-23-2014 07:43 AM
g77 compiles fortran 77 code; gfortran gives weird errors. Why? VelocideX Programming 5 04-22-2009 03:03 AM
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 07:39 AM
Any Fortran 90/95/2003 compiles? halfpower Debian 1 10-21-2005 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration