Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29389 ディスカッション

Debugging a fortran DLL using a *.exe compiled with Delphi 6

jpharvey1981
ビギナー
3,289件の閲覧回数
I am trying to debug a Fortran DLL(compiled with the intel Visual Fortran 11.1)in the Microsoft Visual Studio 2008environment using a *.exe compiled with Delphi 6. When I start the debugger, I get the following warning:

... Debugging information for 'Project1.exe' cannot be found or does not match. Binary was not built with debug information.

Is there a way touse my compiled *.exe from Delphi in visual studio in a waythat I canadd and use break pointsin my Fortran dllwhen running the debugger?

Does a newer version of delphi would help for debugger compatibility?


0 件の賞賛
9 返答(返信)
Steven_L_Intel1
従業員
3,289件の閲覧回数
See here
jpharvey1981
ビギナー
3,289件の閲覧回数
I already made this setup in Visual studio andit results in the quoted warning message ...
Steven_L_Intel1
従業員
3,289件の閲覧回数
Ignore the warning.
jpharvey1981
ビギナー
3,289件の閲覧回数
I also ignored the warning to see what would happen...

The Delphi .exe program is executed and the Fortran DLL compiled with Intel visual Fortran is working properly.

The subroutine of my Fortran DLLis called many times but the breakpoint contained in this subroutine is not breaking the execution. Only one version of this FortranDLL exists on my computer so I am 100% sure that the Fortran DLLused in my programis the one I am trying to debug.


I also have the following warning in my DLL code: "The breakpoint will not currently be hit. No symbols have been loaded for this document..."

Steven_L_Intel1
従業員
3,289件の閲覧回数
Is the DLL a debug build? I've never had a problem doing this.
jpharvey1981
ビギナー
3,289件の閲覧回数
Yes, to my limited knowledge using this compiler and the Visual studio environement, I have a debug DLL. In the configuration manager of my Fortran DLL I see: (Configuration Properties, Debugging): Configuration = Debug Is there another (Compiling/linking) option that I am missing when I am compiling the DLL? I also have a demo version of the Intel compiler, don't know if this influences the debugging mode...
Steven_L_Intel1
従業員
3,289件の閲覧回数
If you have Configuration: Win32 Debug, then that should be enough. I just tried this using the Excel sample provided and it worked. I got the initial warning about the executable not being debuggable, but the breakpoint did get hit. Did you actually run the Delphi program or just rely on the fact that the breakpoint initially shows up with a ? indicating that it would not be hit?

No, the evaluation version of the compiler does not influence this.
jpharvey1981
ビギナー
3,289件の閲覧回数

I found the problematic:

In the Fortran Debugging menu (project property pages),
I have to set the option --> Debug Information Format: FULL.

Like I said, I am a newbie with the Intel Compiler and I hope this might help other people...

Thanks a lot Mr. Lionel for your help!

Steven_L_Intel1
従業員
3,289件の閲覧回数
Glad to hear it, but that property should have already been set for a Debug configuration.
返信