ITK with DCMTK building error

hello,
i have this link error as mentioned above.

i see the post is few months ago and i’m using version 3.6.4 of dcmtk, itk 4.13.2.

is the fix in those versions or should i do the patch also?

@eninyo: It doesn’t look like the patch mentioned above made it into 4.13.2. Can you try using the latest version of ITK (5.0rc02 or master) and see if that solves your problem?
Thanks!

@fbudin thanks for your reply.
i want to use formal released version which is itk 4.13.2 as for now.

now the question is how do i apply the patch? (i’m new to it…)
i download the sources and cmake it.
any suggestions?

just to make it clear, the patch is on ITK and not DCMTK, right?
as i see the changes in the patch are in the cmake files only, right?

@eninyo: What is the value of the CMake variable DCMTK_USE_ICU? And what is your development platform (Windows, Mac, Linux)?
If DCMTK_USE_ICU is set to ON, try setting it to OFF and see if that gets rid of your issue.

@fbudin I don’t have this (DCMTK_USE_ICU) at all in the itk cmake.
did you mean dcmtk?

@eninyo: It is both an ITK and a DCMTK option. Since you seem to be building DCMTK outside of ITK, then you should check the value of that option in the DCMTK build tree. However, I think that to address your problem, the other option that I mentioned in this other post is more likely to be helpful.

in cmake of DCMTK ICU is set to false, so I guess it is not the issue.
I will try to add the iphlpapi ws2_32 netapi32 wsock32 libs to the linking.