digitalmars.D.learn - Vibe-d Error Message and failed with exit code 1
- Baby Beaker (104/104) Apr 04 2020 Program.d
- WebFreak001 (7/20) Apr 05 2020 then additionally try installing Visual C++ 2015 runtime:
Program.d /+ dub.sdl: name "hello_vibed" dependency "vibe-d" version="~>0.8.0" +/ import vibe.vibe; import std; void main() { writeln("Ola Mundo!"); listenHTTP("127.0.0.1:8080", (req, res) { res.writeBody("Hello Vibe.d: " ~ req.path); }); runApplication(); } In cmd prompt: dub fetch vibe-d dub Program.d I get this Error, How solve it?: C:\Users\Usuario\AppData\Local\dub\packages\vibe-d-0.8.6\vibe-d\http\vibe\http\s erver.d(949,24): Deprecation: function std.typecons.Nullable!(CookieValueMap).Nu llable.get_ is deprecated - Implicit conversion with alias Nullable.get this wil l be removed after 2.096. Please use .get explicitly. C:\Users\Usuario\AppData\Local\dub\packages\vibe-d-0.8.6\vibe-d\http\vibe\http\s erver.d(962,38): Deprecation: function std.typecons.Nullable!(DictionaryList!(st ring, true, 16u, false)).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly. C:\Users\Usuario\AppData\Local\dub\packages\vibe-d-0.8.6\vibe-d\http\vibe\http\s erver.d(1041,18): Deprecation: function std.typecons.Nullable!(DictionaryList!(s tring, true, 16u, false)).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly . D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(174,38): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. D:\dmd2\windows\bin\..\..\src\phobos\std\range\primitives.d(176,27): Deprecation : alias byKeyValue this is deprecated - Iterate over .byKeyValue instead. lld-link: error: C:\Users\Usuario\AppData\Local\dub\packages\eventcore-0.8.50\ev entcore\lib\ws2_32.lib: unknown file type lld-link: error: C:\Users\Usuario\AppData\Local\dub\packages\eventcore-0.8.50\ev entcore\lib\kernel32.lib: unknown file type lld-link: error: C:\Users\Usuario\AppData\Local\dub\packages\vibe-d-0.8.6\vibe-d \lib\win-i386\libssl.lib: unknown file type lld-link: error: C:\Users\Usuario\AppData\Local\dub\packages\vibe-d-0.8.6\vibe-d \lib\win-i386\libcrypto.lib: unknown file type Error: linker exited with status 1 D:\dmd2\windows\bin\dmd.exe failed with exit code 1. fgf
Apr 04 2020
On Saturday, 4 April 2020 at 14:40:16 UTC, Baby Beaker wrote:Program.d /+ dub.sdl: name "hello_vibed" dependency "vibe-d" version="~>0.8.0" +/ import vibe.vibe; import std; [...]First of all try using the latest vibe.d release instead:/+ dub.sdl: name "hello_vibed" dependency "vibe-d" version="~>0.9.0-alpha.2" +/then additionally try installing Visual C++ 2015 runtime: https://www.microsoft.com/en-us/download/details.aspx?id=48145 and after you done that and it still doesn't work, try using ldc2. It should definitely work at that point when VC++ 2015 runtime is installed then.
Apr 05 2020