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

Calling C# from Fortran (via C++)

justin_hayes
Beginner
317 Views

Hi,

I've been having incredible trouble calling and debugging C# from Fortran, via C++.

I took the example "Fortran calls C" code from the Intel Visual Fortran Compiler, and added in my existing C# project into the solution.

I find that the C project must be compiled as a Static LIB. I've been unable to get the Fortran project to call C from a DLL.

I also find that when I introduce any .NET stuff into the C project, I am no longer able to debug the C project and any calls to C functions are executed as a single step - i.e. I cannot step through C code line by line, although I can still step through the Fortran code.

If anyone has any help to offer, I'd be extremely grateful!

Thanks very much,

Justin

0 Kudos
0 Replies
Reply