|
|
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » How to link libeay32, libssl32 and ssleay32 statically in Windows?
How to link libeay32, libssl32 and ssleay32 statically in Windows? [message #53555] |
Sat, 11 April 2020 11:33 |
Tom1
Messages: 1251 Registered: March 2007
|
Senior Contributor |
|
|
Hi,
I'm using Core/SSH and and Core/SSL and just as the title says: How to link libeay32, libssl32 and ssleay32 statically in Windows?
I seem to remain dependent on:
libeay32.dll
libssl32.dll
ssleay32.dll
I used MSBT19x64.
I also tried CLANGx64 but then I ended up with missing libraries:
Linking...
lld: error: unable to find library -llibeay32MT
lld: error: unable to find library -lssleay32MT
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
There were errors. (3:58.39)
Is there a way to get them statically linked to avoid dependence of those DLLs?
Best regards,
Tom
|
|
|
|
Re: How to link libeay32, libssl32 and ssleay32 statically in Windows? [message #53588 is a reply to message #53586] |
Tue, 14 April 2020 09:38 |
Tom1
Messages: 1251 Registered: March 2007
|
Senior Contributor |
|
|
Hi Luigi,
Thanks, but this did not solve the .dll dependency issue on Windows.
I renamed the dlls so that they cannot be reached, but the result was the same. I started to think that maybe some or all of the ssl .lib files shipped with u++ are actually just import libraries for those dlls. Perhaps there is no static version included at all.
Best regards,
Tom
|
|
|
|
|
|
|
Re: How to link libeay32, libssl32 and ssleay32 statically in Windows? [message #53710 is a reply to message #53702] |
Thu, 23 April 2020 10:16 |
Tom1
Messages: 1251 Registered: March 2007
|
Senior Contributor |
|
|
Hi,
This morning the nightly build upp-win-14352.7z had an empty file dbghelp.dll in root and prevented startup of TheIDE. I replaced the file with a copy from previous version and got it running. I also noticed that the README file is empty.
(During first startup it showed the license agreement with year up to 2019 only. Worth fixing to 2020 before release.)
Core/SSH.upp also needs the same change from:
library(WIN32 GCC) "ssl crypto";
to:
library(WIN32 (GCC | CLANG)) "ssl crypto";
Then it links statically and works correctly with CLANG and CLANGx64 on Windows.
On the MSBT19 and MSBT19x64 its still dependent on the .DLLs. This needs more attention.
Best regards,
Tom
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:03:08 CET 2024
Total time taken to generate the page: 0.02989 seconds
|
|
|