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 

error when linking with /check /undef

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Norm.Campbell



Joined: 31 Aug 2007
Posts: 66

PostPosted: Sun Jan 07, 2024 7:58 am    Post subject: error when linking with /check /undef Reply with quote

I have some Fortran code that runs and produces sensible output when I use the following commands:

ftn95 /intl /dreal /64 CVA_ascii_image_n_B_W.for > ftn_compile.out
slink64 CVA_ascii_image_n_B_W.obj
CVA_ascii_image_n_B_W.exe

However, when I attempt to run the same code with

ftn95 /intl /dreal /64 /check /undef CVA_ascii_image_n_B_W.for > ftn_compile.out
slink64 CVA_ascii_image_n_B_W.obj
CVA_ascii_image_n_B_W.exe

the program doesn't load correctly into the Silverfrost 64-bit Debugger, and I get the error message

Call Stack
Error: Access Violation writing address
0x0000000002661000

000000000040127F

Any suggestions as to what I need to change so that the program runs?

Norm Campbell
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sun Jan 07, 2024 9:54 am    Post subject: Reply with quote

Norm

Can you send or post the Fortran code that produces this error report.

Better still, provide the shortest program that demonstrates the failure.
Back to top
View user's profile Send private message AIM Address
Norm.Campbell



Joined: 31 Aug 2007
Posts: 66

PostPosted: Sun Jan 07, 2024 10:23 am    Post subject: error when linking with /check /undef Reply with quote

Thank you Paul

I've sent the code via email.

Please let me know when you receive it.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sun Jan 07, 2024 3:58 pm    Post subject: Reply with quote

Norm

I have received your code. For me, FTN95 fails when trying to compile the code for 64 bits but with a different outcome. Which version of FTN95 are you using and can you confirm that it is for 64 bits?
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sun Jan 07, 2024 4:44 pm    Post subject: Reply with quote

Norm

After fixing numerous error reports of the form "error 694 - Spurious comma at end of line", your code compiles successfully for me but it then fails to link, presumably because of a missing INCLUDE.

Maybe you have sent me the wrong program.
Back to top
View user's profile Send private message AIM Address
Norm.Campbell



Joined: 31 Aug 2007
Posts: 66

PostPosted: Wed Jan 17, 2024 2:14 am    Post subject: error when linking with /check /undef Reply with quote

Hi Paul

There is a line

common / eig_det / det

in subr cvpgei

called from cvpcvu called from cvscvp called from CVA_successive_projections.

When I comment that out, the code links and runs under the debugger.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Jan 17, 2024 9:12 am    Post subject: Reply with quote

Norm

Does that mean that there is no longer a problem?
Back to top
View user's profile Send private message AIM Address
Norm.Campbell



Joined: 31 Aug 2007
Posts: 66

PostPosted: Wed Jan 17, 2024 11:29 am    Post subject: error when linking with /check /undef Reply with quote

I've found the cause of the problem, and fixed it, but I am curious as to why a superfluous common statement should cause the debugger to fail to operate.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Jan 17, 2024 1:39 pm    Post subject: Reply with quote

Norm

I don't know why it failed for you.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
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