Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28456 Discussions

Embedding HDF5 DLL with EXE application

Ploscaru_C_
Beginner
379 Views

Hi,

I created an EXE which work fine onmy computer. But when I tried to send it to another person, he get an error : 'Can't find hdf5_fortran.dll'. I assume it's because he doesn't have hdf5 installed on his computer.

I gave him all the hdf5 lib but now he get 'can't find libifcoremt.dll'. It's an intel lib no ?

So, how can I make an exe which contain automaticaly all the dll needed ?

I thought I just need to add "/libs:static /threads /c" command lines, but no.

What did I miss ?

Thanks for your help !

0 Kudos
1 Reply
Steven_L_Intel1
Employee
379 Views

If you added /libs:static /threads to the ifort command line options, then the resulting EXE should not be dependent on the Intel Fortran (or MSVC) run-time DLLs. The HDF library is not ours so these options would not affect that. However, if the HDF DLL was built against the Intel Fortran DLLs, it would need those.

See https://software.intel.com/en-us/articles/intelr-composer-redistributable-libraries-by-version for where to get the Intel Fortran run-time DLLs as a redistributable installer. The target system might also need Microsoft Visual C++ redistributables installed as well.

0 Kudos
Reply