Discussion:
[ITK-users] Dynamic link library runtime error
Fabian Torres
2018-01-09 19:46:30 UTC
Permalink
Hi all

I'm trying to compile vtk5.10 and ITK 4.4 in visual studio 2013 in order to
build an application using qt 4.8.7.
I have already done this using visual studio 2008 and the libraries and my
application works fine.

The problem I have is that after some strugle I have already compiled the
libraries (ITK and VTK) in visual studio 2013.
Now I have compiled my application with the new libraries but when I run it
I get a Runtime error I do not understand.

The procedure entry point
?***@MetaDictionary@itk@@QAE?AV?$***@V?...
....
...@@XZ could not be located in the dynamic link library ITKCommon-4.4.dll

What does this mean?

Thanks
--
Fabián Torres Robles
Maestría en Ciencias en Ingeniería Electrónica
Ingeniería en Sistemas Electrónicos
Tel. 58081280, 0445534661338
E-mail ***@gmail.com, ***@gmail.com
Dženan Zukić
2018-01-09 21:21:19 UTC
Permalink
Hi Fabian,

it most likely means there is a version mismatch between you application
and the DLL. Your application was compiled using a different version from
the one used to compile the DLLs. You can use dependency walker
<http://www.dependencywalker.com/> to see if your application is using the
DLL you expect. You can also try compiling ITK as static libraries, and
link your application to that - thus avoid a possibility of such an error.

Regards,
DÅŸenan
Post by Fabian Torres
Hi all
I'm trying to compile vtk5.10 and ITK 4.4 in visual studio 2013 in order
to build an application using qt 4.8.7.
I have already done this using visual studio 2008 and the libraries and my
application works fine.
The problem I have is that after some strugle I have already compiled the
libraries (ITK and VTK) in visual studio 2013.
Now I have compiled my application with the new libraries but when I run
it I get a Runtime error I do not understand.
The procedure entry point
....
What does this mean?
Thanks
--
Fabián Torres Robles
Maestría en Ciencias en Ingeniería Electrónica
Ingeniería en Sistemas Electrónicos
Tel. 58081280, 0445534661338
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
https://itk.org/mailman/listinfo/insight-users
Fabian Torres
2018-01-16 17:56:23 UTC
Permalink
Dear Dzenan

Thanks for the response. I do have other compiled versions of ITK so I did
as you mentioned and ran dependency walker in my app.
It showed me that my app was using the right library, compiled in VS2013.

The next step I tried was compiling the libraries (VTK and ITK) without
shared libraries option in CMake, and it was like magic, my application
compiled and run without problems..
So many thanks for the information.

Fabian.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Post by Dženan Zukić
Hi Fabian,
it most likely means there is a version mismatch between you application
and the DLL. Your application was compiled using a different version from
the one used to compile the DLLs. You can use dependency walker
<http://www.dependencywalker.com/> to see if your application is using
the DLL you expect. You can also try compiling ITK as static libraries, and
link your application to that - thus avoid a possibility of such an error.
Regards,
DÅŸenan
Post by Fabian Torres
Hi all
I'm trying to compile vtk5.10 and ITK 4.4 in visual studio 2013 in order
to build an application using qt 4.8.7.
I have already done this using visual studio 2008 and the libraries and
my application works fine.
The problem I have is that after some strugle I have already compiled the
libraries (ITK and VTK) in visual studio 2013.
Now I have compiled my application with the new libraries but when I run
it I get a Runtime error I do not understand.
The procedure entry point
....
What does this mean?
Thanks
--
Fabián Torres Robles
Maestría en Ciencias en Ingeniería Electrónica
Ingeniería en Sistemas Electrónicos
Tel. 58081280, 0445534661338
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
https://itk.org/mailman/listinfo/insight-users
--
Fabián Torres Robles
Maestría en Ciencias en Ingeniería Electrónica
Ingeniería en Sistemas Electrónicos
Tel. 58081280, 0445534661338
E-mail ***@gmail.com, ***@gmail.com
Loading...