Silverfrost Forums

Welcome to our forums

Calling .NET dll from FTN95

17 May 2021 9:48 #27790

I am trying to call a 3rd party .NET dll from fortran program and can't seem to get it working. Following along with the Help documentation, I am trying to use ASSEMBLY_EXTERNAL() and OBJECT(), but keep getting this error:

'error 810 - ASSEMBLY_EXTERNAL is only allowed in CLR mode (with /CLR switch specified)'

This error persists even when I add the /CLR directive through Project Compiler Options or to the appropriate line of a build script.

Can anyone help me figure out what I'm missing? Is there a working example of Fortran calling a .NET dll that I could study?

Thanks very much for any help!

18 May 2021 6:14 #27793

Clay

Can you post a short subprogram that illustrates the failure?

Please login to reply.