View previous topic :: View next topic |
Author |
Message |
Norm.Campbell
Joined: 31 Aug 2007 Posts: 66
|
Posted: Sun Jan 07, 2024 7:58 am Post subject: error when linking with /check /undef |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8018 Location: Salford, UK
|
Posted: Sun Jan 07, 2024 9:54 am Post subject: |
|
|
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 |
|
|
Norm.Campbell
Joined: 31 Aug 2007 Posts: 66
|
Posted: Sun Jan 07, 2024 10:23 am Post subject: error when linking with /check /undef |
|
|
Thank you Paul
I've sent the code via email.
Please let me know when you receive it. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8018 Location: Salford, UK
|
Posted: Sun Jan 07, 2024 3:58 pm Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8018 Location: Salford, UK
|
Posted: Sun Jan 07, 2024 4:44 pm Post subject: |
|
|
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 |
|
|
Norm.Campbell
Joined: 31 Aug 2007 Posts: 66
|
Posted: Wed Jan 17, 2024 2:14 am Post subject: error when linking with /check /undef |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8018 Location: Salford, UK
|
Posted: Wed Jan 17, 2024 9:12 am Post subject: |
|
|
Norm
Does that mean that there is no longer a problem? |
|
Back to top |
|
|
Norm.Campbell
Joined: 31 Aug 2007 Posts: 66
|
Posted: Wed Jan 17, 2024 11:29 am Post subject: error when linking with /check /undef |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8018 Location: Salford, UK
|
Posted: Wed Jan 17, 2024 1:39 pm Post subject: |
|
|
Norm
I don't know why it failed for you. |
|
Back to top |
|
|
|