T
T
The_Immortal2020-12-03 04:57:27
Fortran
The_Immortal, 2020-12-03 04:57:27

How to embed dll into exe?

Can you please tell me how to embed the necessary libraries into the compiled exe?
I compile via gfortran like this: gfortran -o test.exe test.f -std=legacy
If the resulting exe is run on a "clean" machine, then the following are required at startup: libgcc_s_dw2-1.dll, libgfortran-5.dll, libquadmath-0.dll.

libfortran-5.dll seems to have been sewn through the "-static-libgfortran" key, but the rest I can't... Please help me.

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2020-12-03
@The_Immortal

but the rest can't

So is it simple -static? This will not "embed the dll into the exe" but will link to the static version of all libraries.

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question