Compiling options for DISCON.dll

Thanks for your reply!

I tried that, but it still does not work. At first some more information on my build environment. I tried two PCs. Nr. 1 uses Win XP SP3 32bit with Visual Studio 2005 and the Intel Fortran 11.1 compiler. The second one is A Windows 7 64 bit with Visual Studio 2008 and the Intel Fortran 11.1 compiler. On both machines, I am able to compile A2AD and FAST without problems.

Now back to my problem with the DISCON.dll. I tried to compile it with ifort /dll /winapp /libs:static DISCON.f90 and got the result ifort: warning #10153: option '/Qvc8' or higher used with '/ML[d]' is not supported [...] LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
The first is a warning, not too important i guess, even though i specified none of these options. the second is fatal and causes termination.

I did some research and found that this seems to be a common problem with VS2005 (and higher?), and a solution would be to tell the fortran compiler that it does not require the LIBC.dll: ifort /dll /libs:static /winapp DISCON.f90 /link /NODEFAULTLIB:libc

If I try this however, I get loads of errors:[...] libifcore.lib(cvtas_a_to_s.obj) : error LNK2001: unresolved external symbol __fltused libifcore.lib(cvtas_nan_t.obj) : error LNK2001: unresolved external symbol __fltused DISCON.obj : error LNK2001: unresolved external symbol __fltused libifcore.lib(cvt_cvtas_t.obj) : error LNK2001: unresolved external symbol __fltused libifcore.lib(cvt_cvtas_s.obj) : error LNK2001: unresolved external symbol __fltused libifcore.lib(cvtas_t_to_a.obj) : error LNK2001: unresolved external symbol __fltused LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 libifcore.lib(for_f90str.obj) : error LNK2019: unresolved external symbol _memmove ref [...] LINK : error LNK2001: unresolved external symbol __load_config_used DISCON.dll : fatal error LNK1120: 118 unresolved externals so I guess, that this library is indeed required.

I got these results on both machines, with the 64bit machine set to 32bit build environment variables. With 64bit settings on the Win7 machine, I get another error (ifort: error #10037: could not find ‘link’) but that is not of interest for me, because I want a 32bit dll file.

I will see If I can find it, thanks!

Could anyone of you, who successfully compiled the NREL 5MW onshore DISCON.f90 tell me about their system specification, and build command?

Thanks a lot,

Luiz da Rocha