View previous topic :: View next topic |
Author |
Message |
Catherine
Joined: 16 May 2014 Posts: 16
|
Posted: Fri May 16, 2014 1:18 pm Post subject: Launching code from Plato |
|
|
I have just moved to Windows 7 and upraded to Version 7.0 of the compiler.
I have compiled and linked my codesuccessfully. If I run it by clicking the .exe it runs successfully.
If I 'Start run' from witjin Plato it does not run (I am retuned immediately to a consoe wodow).
If I attempt to launch the debugger I get an innediate error. This is "*Unknown* (in ntdll.dll)" |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Fri May 16, 2014 2:00 pm Post subject: |
|
|
I think this is because the path to the compiler is not included in the system %PATH% variable. The installer is supposed to do this for you but it may not work properly on windows 7.0 (It didn't happen for me in 8.1).
Note that when this happens the program will only run from a command window or by double-clicking on the exe file.
You can add the appropriate entry to you %PATH% and it then should work from Plato as well. Post back if you need advice on how to do this in win 7.
For 64 bit win 7, the path to be added is:
C:\Program Files (x86)\Silverfrost\FTN95 _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
Catherine
Joined: 16 May 2014 Posts: 16
|
Posted: Fri May 16, 2014 2:09 pm Post subject: |
|
|
That seems to fit what I am seeing.
What is it that I need to add to %PATH% and wher do I find this?? |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Fri May 16, 2014 2:20 pm Post subject: |
|
|
On windows 7 do this:
- Right-click Computer on the Desktop or Start Menu.
- Click Advanced System Settings.
- Click the Advanced tab.
- Click Environment Variables ...
- Look for Path variable under either user variables or system variables.
- Double click the variable to edit it (or select it and click Edit ...)
** Be careful with the next steps **
- Click in the variable value window.
- Press the End key on your keyboard to go to the end of the line.
- Type in the following at the end of the line (include the ; at the start).
;C:\Program Files (x86)\Silverfrost\FTN95
- Click OK (3 times).
- Reboot (or log off and back on). _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
Catherine
Joined: 16 May 2014 Posts: 16
|
Posted: Fri May 16, 2014 4:15 pm Post subject: |
|
|
The path had already been created correctly.
The error I am seeing is:
Call Stack/Staus
Exception code 0xC0000138
*Unknown* |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Fri May 16, 2014 4:39 pm Post subject: |
|
|
That is very strange.
Have you tried re-installing Silverfrost?
Also try to run with your anti-virus turned off temporarily (turn it back on after though). There are some problems with AVAST if you have it. _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
|
Back to top |
|
 |
Catherine
Joined: 16 May 2014 Posts: 16
|
Posted: Tue May 20, 2014 9:49 am Post subject: |
|
|
I think that this issue us now sorted.
I built the project in exactly the same way as before, but in a completely new drectory. I am not sure why this should have made a diffreence, but I have now built several similar projects successfully.
Thank you very much for your responses in this matter. |
|
Back to top |
|
 |
|