# Compiling options for DISCON.dll

**URL:** <https://forums.nlr.gov/t/compiling-options-for-discon-dll/291>\
**Category:** Computer-Aided Engineering Software Tools\
**Created:** [October 6, 2010, 7:09am UTC](https://forums.nlr.gov/t/compiling-options-for-discon-dll/291 "2010-10-06T07:09:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Luiz.daRocha](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Luiz.daRocha](https://forums.nlr.gov/u/Luiz.daRocha)\
**Post date:** [October 6, 2010, 7:09am UTC](https://forums.nlr.gov/t/compiling-options-for-discon-dll/291/1 "2010-10-06T07:09:15Z")

</div>

Hello everybody,

I am currently trying to compile a DISCON.dll file for my wind turbine model. I had some problems with my file, so I first tried compiling the DISCON.f90 file that is delivered with the NREL 5MW model. The compilation works without errors, but the resulting DLL file is only 9KB instead of the 24KB of the original DLL, and a FAST simulation fails with a popup message:`
 "This application has failed to start because MSVCR80.dll was not found" 
` and a FAST error message `
"The DLL DISCON.dll could nod be loaded.".
`  
I found several copies of this MSVCR80.dll on my computer from different programs, so I took one, and copied it to my work directory. Now I got a popup error: `
"Runtime Error! Program: [path to my working folder] R6034 An application has made an attempt to load the C runtime library incorreclty. Please contact [...]"
`  
I use Intel Visual Fortran 11.1 and I tried these command lines for compiling:

`ifort /dll DISCON.f90
ifort /c /automatic /O1 /architecture:pn4 /Ob2 /MD /Gm /real_size:32 /assume:byterecl /Qdiag-disable:5268 /dll DISCON.f90
`  
I always get the same result. Could you tell me, how you compile your DISOCN.dll files?

Thank you,  
Luiz da Rocha

---

_[View the full topic](https://forums.nlr.gov/t/compiling-options-for-discon-dll/291)._
