Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

what is the problem of this simple code regading Write command?

Rasoul_K_
Beginner
1,590 Views

I was about running a big program. I figured out that it is better to learn the basics with simple test codes, before running the main program.

I find a simple code regarding the Write command from Intel help site. I am modifying little by little to reach my desired level. Code is as follows:

! write to file
 open(1,FILE='test.dat')
 write (1, '(A20)') namedef
 ! write with FORMAT statement
 WRITE (1, 10) (n, SQRT(FLOAT(n)), FLOAT(n)**(1.0/3.0), n = 1, 100)
10 FORMAT (I5, F8.4, F8.5)
!   colse(1)
!   read (*,*)
   stop
   end

It gives following error message:

'Console2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file

What is PDB file and how can I solve this issue?

0 Kudos
10 Replies
Steven_L_Intel1
Employee
1,590 Views
That is not an error message. It is simply an informational message from the debugger that you can ignore. It has nothing to do with your program.
0 Kudos
Rasoul_K_
Beginner
1,590 Views
Steve Lionel (Intel) wrote:

That is not an error message. It is simply an informational message from the debugger that you can ignore. It has nothing to do with your program.

Thank you. Your reply revealed my tensions
0 Kudos
Rasoul_K_
Beginner
1,590 Views
Dear Steve Now I run my main program Following message appears in output 'ConsoleApplication3.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'ConsoleApplication3.exe' (Managed (v4.0.30319)): Loaded 'C:\Documents and Settings\user\My Documents\Visual Studio 2010\Projects\ConsoleApplication3\ConsoleApplication3\bin\Debug\ConsoleApplication3.exe', Symbols loaded. The program '[3936] ConsoleApplication3.exe: Managed (v4.0.30319)' has exited with code 0 (0x0). Is there anything wrong with this message? Especially what is the meaning of: Managed ...has exited with code 0(0x0)?
0 Kudos
Steven_L_Intel1
Employee
1,590 Views
That last message means that the program exited normally. But this is not a Fortran program you are running, so I am not sure why you ask about it here.
0 Kudos
Rasoul_K_
Beginner
1,590 Views
Steve Lionel (Intel) wrote:

That last message means that the program exited normally. But this is not a Fortran program you are running, so I am not sure why you ask about it here.

Dear Steve Thanks for your reply. It is a FORTRAN program. First few lines of program are as the attached text file: Could you please have a look at it. Thanks in advabce
0 Kudos
Rasoul_K_
Beginner
1,590 Views
attached file
0 Kudos
Rasoul_K_
Beginner
1,590 Views
Steve Lionel (Intel) wrote:

But this is not a Fortran program you are running, so I am not sure why you ask about it here.

Dear Steve According to Ian, I have made a mistake in choosing the project type. I have put a FORTRAN program in a F# project. I will try to solve it and run again.
0 Kudos
Steven_L_Intel1
Employee
1,590 Views
Right. It was the referenced to "Managed" and "Assembly" that told me your project was not an Intel Fortran project. I suggest you remove F# from your installation as it seems you don't want it and it is sometimes confusing you./
0 Kudos
Rasoul_K_
Beginner
1,590 Views
Steve Lionel (Intel) wrote:

Right. It was the referenced to "Managed" and "Assembly" that told me your project was not an Intel Fortran project. I suggest you remove F# from your installation as it seems you don't want it and it is sometimes confusing you./

In the beginning when I didn't know the extensions, it was very confusing. Now that I know, it is OK. Because removing F# is another hurdle which I don't want to be involved at least now. You wrote: It was the referenced to "Managed" and "Assembly" that told me Doe it mean another section or department took care of preparing the reply?
0 Kudos
Steven_L_Intel1
Employee
1,590 Views
What I meant was that when you showed the messages from running the application, there were things in the messages that would not appear if it were a Fortran project. I did not realize at that time that you were mistakenly using an F# project for your Fortran code.
0 Kudos
Reply