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

Debuging a Fortran library from a C++\CLI Dll

Craig_L_
Beginner
1,149 Views

I am using visual studio 2010 and have a Fortran Library that I am linking to a C++\CLI dll.  The code is basically the same as the mixed language C_calls_Fortran sample, however the C program was changed to a  C++\CLI dll.  Everything works ok, the Fortran subroutine executes and returns correctly.  However I can't debug into the Fortran subroutine when called.  I have no problems debugging if I link the library to a C program as in the C_calls_Fortran sample

Has anyone had success debug from C++\CLI into Fortran? Or is this a limitation of using CLI

Compiler Version is Intel(R) Visual Fortran Compiler XE 13.0.1.119

Thanks

Craig

0 Kudos
4 Replies
IanH
Honored Contributor III
1,149 Views
You say "C++/CLI dll". What's the exe that runs that DLL?
0 Kudos
Craig_L_
Beginner
1,149 Views
I am using using a .net exe (vb.net winforms) . Everything seems in order I can debug into the c++ code (from vb.net), but as soon as I step into one of the fortran functions it gets stepped over? Very strange
0 Kudos
Steven_L_Intel1
Employee
1,149 Views
In your VB.NET project, select Properties > Debug. Scroll down the page and check the box "Enable unmanaged code debugging". Click Ok.
0 Kudos
Craig_L_
Beginner
1,149 Views
Excellent thanks very much Lionel. That works perfectly, not sure how I missed that option.
0 Kudos
Reply