Closed Milldi closed 1 year ago
I have just tested this with 2.100.0-dirty
(downloaded 7z from official page), and it runs fine on my end. I'm afraid I'd need more info from you, eg your PC specs, to at least try to understand what's going on.
As a sidenote, can you try building with LDC instead, to see if it makes any difference?
What information is needed about the PC?
Installed DMD on another PC with Win10. Example 1 build and run successfully. Compared the received executable files.
Succeeded: There are two files in the bin directory example1.exe file of 3956224 bytes libfreetype-6.dll of 1285120 bytes
Failed: There are two files in the bin directory example1.exe file of 3791872 bytes, libfreetype-6.dll of 1285120 bytes
In both cases I used dmd from the executable installer (official page) . dlangui was going like this: git clone --recursive https://github.com/buggins/dlangui.git cd dlangui/examples/example1 dub run --build=release
With the help of TotalCommander, I viewed the executable files with the internal "Lister(fileinfo)" utility. Dependency DLL tab. Not working requires msvсr120.dll The worker does not require this dll.
Happened. Example1 started. I copied msvcr120.dll from the dmd2\windows\bin64 folder to the folder with the executable file example1. However, it is not clear. Why is example1 assembled differently on different PCs.
Happened. Example1 started. I copied msvcr120.dll from the dmd2\windows\bin64 folder to the folder with the executable file example1. However, it is not clear. Why is example1 assembled differently on different PCs.
I have been informed that DMD will attempt to link with msvcr if Visual C++ is installed (eg VIsual Studio). If Visual C++ is not available, however, it will revert to mingw. Does one of your systems have Visual Studio installed?
Yes installed. On the second PC, where it worked without problems.
I have thought about it, and the linked library is msvcr120, not msvcrd120 - the debug version. Wouldn't it mean that you just need to install Visual C++ Redistributable to fix this?
Gonna close this for now. If any more issues appear - please open new issue.
OS: Win 10 x64 DMD 2.100.0
screenshot https://cloud.mail.ru/public/2n4U/2og7W1fj6