# \[SOLVED\] Building dynamic libraries \*d.dll vs \*.dll

**URL:** https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002
**Category:** Engineering
**Created:** [June 14, 2018, 2:39pm UTC](https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002 "2018-06-14T14:39:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gordian](https://discourse.itk.org/user_avatar/discourse.itk.org/gordian/32/335_2.png) [@Gordian](https://discourse.itk.org/u/Gordian)
#### Post date: [June 14, 2018, 2:39pm UTC](https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002/1 "2018-06-14T14:39:16Z")

</div>

Hello,  
is there any difference between libraries built with \*d.dll or \*.dll? They are in different folder (Debug/RelWithDebInfo).  
(Example: ITKCommon-4.13d.dll built in Debug mode, ITKCommon-4.13.dll built in RelWithDebInfo mode).

Does this mean anything for dependend project?  
I ask because after recompiling ITK another project (also recompiled) is still looking for the \*.dll version.  
Some people suggesting manualy renaming the files.

Thanks in advance.  
Gordian

---

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [June 14, 2018, 3:02pm UTC](https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002/2 "2018-06-14T15:02:21Z")

</div>

You will need to compile your own project with the same configuration you used to compile ITK.

Do not manually rename the files; I’d dare to say that their size will be different, and thus so will their contents be concerning some platform/optimization aspects.

---

<div class="post-metadata">

### Author: ![fbudin](https://discourse.itk.org/user_avatar/discourse.itk.org/fbudin/32/14_2.png) [@fbudin](https://discourse.itk.org/u/fbudin)
#### Post date: [June 14, 2018, 3:11pm UTC](https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002/3 "2018-06-14T15:11:28Z")

</div>

If you use CMake to configure your own project, which is the only way that is supported (it is technically possible to do without but it is a lot of hacking and prone to a lot of errors), you just have to do what @jhlegarreta said, which is to compile ITK and your project with the same configuration. Your project will link against the corresponding ITK compilation. So if you want to compile your project in debug and RelWithDebInfo, you will need to compile ITK in both configurations.

---

<div class="post-metadata">

### Author: ![Gordian](https://discourse.itk.org/user_avatar/discourse.itk.org/gordian/32/335_2.png) [@Gordian](https://discourse.itk.org/u/Gordian)
#### Post date: [June 27, 2018, 9:20am UTC](https://discourse.itk.org/t/solved-building-dynamic-libraries-d-dll-vs-dll/1002/4 "2018-06-27T09:20:07Z")

</div>

Thanks you for the support.  
After recompiling all requested projects in the same configurations it works.
