forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTN95 compile error
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Salvador



Joined: 25 Aug 2020
Posts: 9

PostPosted: Fri Aug 28, 2020 5:55 pm    Post subject: Reply with quote

@mecej4-- I found "alive female spawner", which is on line 2114. However, the 'g' on column 73 I cannot find.

Also, do I change Real 8 between parenthesis to Real*8 all over the code?
I apologize for my naiveness about fortran Embarassed
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1886

PostPosted: Fri Aug 28, 2020 7:08 pm    Post subject: Reply with quote

The file that you uploaded to filesanywhere.com contains a 'g' at the end of line 2114:
Code:
     1 of alive female spawner super-individuals on their day of spawning


That 'g' is in column 73, as you will see if you open the file in Plato or another text editor that shows line and column numbers.

REAL(8) and REAL*8 mean quite different things, depending on the compiler chosen. In "REAL(8)", the 8 is a kind number, which is more a label than a quantity. In "REAL*8", the 8 is the length of the variable in bytes. Many of the old mainframe computers did not employ the concept of a byte.

You will do well by reading a Fortran book or the FTN95 help file and understand kind numbers.
Back to top
View user's profile Send private message
Salvador



Joined: 25 Aug 2020
Posts: 9

PostPosted: Sat Aug 29, 2020 1:01 am    Post subject: Reply with quote

I did a search for all the REAL(eight) and replaced all with REAL*8. I also found the g and made it a comment.
But something strange happens; I am able to compile but only if I use plato. If I use the command line it won't compile. I can settle as long as I can compile Laughing

Once the file is compiled into a ftn95_test.EXE another file is created and is named "ftn95_test.obj"

If at this point I have to do this on the command line: SLINK ftn95_test.obj
I get this error message:
*** SLINK can't process the 64 bit object file ftn95_test.obj
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 697
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Sat Aug 29, 2020 1:11 am    Post subject: Reply with quote

Suggest you take a look at this video from Paul at Silverfrost which outlines both command line and plato modes of compiling/running programs.

https://www.youtube.com/watch?v=7P8vPlCPxuk
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Sun Aug 30, 2020 2:03 am    Post subject: Reply with quote

Use slink64 not slink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group