Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with Intel Visual Fortran & Microsoft Visual Studio

Status
Not open for further replies.

awblom

Technical User
May 8, 2008
2
NL
I recently installed Intel Visual Fortran with Microsoft Visual Studio 2005 and I am trying to compile and run a simple test program:

program hello

real :: x, y, z
open(101,file='myBLABLAfile_NEW.txt')
x = 2.10
y = 11.0
z = x*y

write(101,*) 'the answer is',z
print*, z
close(101)

end program hello

It compiles without any errors. However, when I build it, I get the following output:

'winapp2.exe': Loaded 'C:\Users\Agnes\Documents\Visual Studio 2005\Projects\WinApp2\WinApp2\Debug\winapp2.exe', Symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\ntdll.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\kernel32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\imagehlp.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\msvcrt.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\shimeng.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\apphelp.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\user32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\gdi32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\advapi32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\shell32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\shlwapi.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\ole32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\oleaut32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\userenv.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\secur32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\winspool.drv', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\mpr.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\AppPatch\AcGenral.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\uxtheme.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\winmm.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\oleacc.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\netapi32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\psapi.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\msacm32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\version.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\sfc.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\sfc_os.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\setupapi.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\dwmapi.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\urlmon.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\iertutil.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\shunimpl.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\imm32.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\msctf.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\lpk.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\System32\usp10.dll', No symbols loaded.
'winapp2.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.20533_none_4634c4a0218d65c1\comctl32.dll', No symbols loaded.
The program '[4964] winapp2.exe: Native' has exited with code 255 (0xff).

Can anyone help me?
 
1) Set a breakpoint (F9) at end program hello
2) Run the program (F5)

You should see a console window pop up and print a number.

If you then press F5, you'll get the exited statement.

If you add a stop before the end, the exit code will be 0.
 
When I do that the same thing happens, it doesn't stop at the break point.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top