Microsoft Windows* (XP, Vista, 7)

Pass Module Variables From Main Program to a DLL

I am trying to pass some module variables from a main Fortran program to a dll.  It gets compilicated in that these files get linked with ANSYS but I think I'm missing something fundamental with my Fortran programs or dll creation.  I've created a simple example to demonstrate this.

I have been able to compile, link, and run but I'm not getting the module variables with the right values in my dll.  Since this does link with ANSYS I am not using A visual studio project.  I use some simple scripts to compile and link.

Here is the dll.

LINK : fatal error LNK1104; cannot open file 'ucrtd.lib' with VS2015

This issue is also described here:

However, the workaround given in the above link did not solve finding the ucrtd.lib library. For my system the problem is that the default Library directory for ucrtd.lib is $(UniversalCRTSdkDir)Lib\10.0.10056.0\ucrt\x86 which is not correct. On my system his library exists in the directory $(UniversalCRTSdkDir)Lib\10.0.10150.0\ucrt\x86.

Suscribirse a Microsoft Windows* (XP, Vista, 7)