PDA

View Full Version : Debugging into a Fortran Dll using Visual Studio .NET


guy
03-17-2004, 02:13 PM
In Visual Studio .NET I've built one solution with two projects: one is a simple Win32 Dynamic Library Fortran project, while the other is a Visual C++ Console Application project. From the C++ application I call a function in the Fortran Dll. Everything compiles, links and runs beautifully; However, when I try to use the Visual Studio debugger to step into the Fortran function from the application code, the debugger prefers to "Step Over" instead. Same happens when I try to put a break point in the fortran function (it appears with a question mark).

Can I debug into a fortran dll using Visual Studio .NET ???

tzeis
03-17-2004, 04:51 PM
The Win32 compiler (LF95) does not create debug information that is compatible with the Visual Studio debugger. You must use the Fujitsu debugger WinFDB to debug the Fortran DLL. See
Debugging a Win32 DLL called from a .NET main (http://forum.lahey.com/showthread.php?s=&threadid=10277) for instructions on how to use the debugger with a Fortran DLL . The instructions are for a .NET executable, but they apply equally well to a Win32 exe also.