www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Vibe.d

reply Jack <jack jack.com> writes:
Hi,

I am building a webapp using vibe.d which is working well on 
macOS and Linux. However, when I run it on windows I get:
Program exited with code -1073741701

I created a new default project with: dub init test -t vibe.d
and get the same error code when running it.

Any suggestions what could be wrong?
Sep 19 2020
next sibling parent reply Jack <jack jack.com> writes:
On Saturday, 19 September 2020 at 13:13:56 UTC, Jack wrote:
 Hi,

 I am building a webapp using vibe.d which is working well on 
 macOS and Linux. However, when I run it on windows I get:
 Program exited with code -1073741701

 I created a new default project with: dub init test -t vibe.d
 and get the same error code when running it.

 Any suggestions what could be wrong?
I managed to get it to work with ldc, still not sure why it isn't working with dmd.
Sep 19 2020
parent reply Andre Pany <andre s-e-a-p.de> writes:
On Saturday, 19 September 2020 at 13:31:35 UTC, Jack wrote:
 On Saturday, 19 September 2020 at 13:13:56 UTC, Jack wrote:
 Hi,

 I am building a webapp using vibe.d which is working well on 
 macOS and Linux. However, when I run it on windows I get:
 Program exited with code -1073741701

 I created a new default project with: dub init test -t vibe.d
 and get the same error code when running it.

 Any suggestions what could be wrong?
I managed to get it to work with ldc, still not sure why it isn't working with dmd.
In case you have an older version of dub, dmd will build an x86 executable by default with OMF (Windows). Never versions of dub defaults to architecture x86_64 with COFF. LDC builds only COFF for x86 and x86_64. Kind regards Andre
Sep 19 2020
next sibling parent Andre Pany <andre s-e-a-p.de> writes:
On Saturday, 19 September 2020 at 17:57:09 UTC, Andre Pany wrote:
 On Saturday, 19 September 2020 at 13:31:35 UTC, Jack wrote:
 On Saturday, 19 September 2020 at 13:13:56 UTC, Jack wrote:
 Hi,

 I am building a webapp using vibe.d which is working well on 
 macOS and Linux. However, when I run it on windows I get:
 Program exited with code -1073741701

 I created a new default project with: dub init test -t vibe.d
 and get the same error code when running it.

 Any suggestions what could be wrong?
I managed to get it to work with ldc, still not sure why it isn't working with dmd.
In case you have an older version of dub, dmd will build an x86 executable by default with OMF (Windows). Never versions of dub defaults to architecture x86_64 with COFF. LDC builds only COFF for x86 and x86_64. Kind regards Andre
Never => newer
Sep 19 2020
prev sibling parent reply HuskyNator <HuskyNator protonmail.ch> writes:
On Saturday, 19 September 2020 at 17:57:09 UTC, Andre Pany wrote:
 In case you have an older version of dub, dmd will build an x86 
 executable by default with OMF (Windows). Never versions of dub 
 defaults to architecture x86_64 with COFF.
 LDC builds only COFF for x86 and x86_64.

 Kind regards
 Andre
I'm getting the same error after newly installing on my laptop. Not sure what to do to fix the issue.
Sep 05 2021
parent HuskyNator <HuskyNator protonmail.ch> writes:
On Sunday, 5 September 2021 at 12:12:20 UTC, HuskyNator wrote:
 On Saturday, 19 September 2020 at 17:57:09 UTC, Andre Pany 
 wrote:
 In case you have an older version of dub, dmd will build an 
 x86 executable by default with OMF (Windows). Never versions 
 of dub defaults to architecture x86_64 with COFF.
 LDC builds only COFF for x86 and x86_64.

 Kind regards
 Andre
I'm getting the same error after newly installing on my laptop. Not sure what to do to fix the issue.
Worked it out, Had to do with my Visual Studio installation (I think?). The dmd installer was quite vague about this imo, only telling me to install VS, but not what part. Somehow got it to work now.
Sep 05 2021
prev sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Saturday, 19 September 2020 at 13:13:56 UTC, Jack wrote:
 Hi,

 I am building a webapp using vibe.d which is working well on 
 macOS and Linux. However, when I run it on windows I get:
 Program exited with code -1073741701

 I created a new default project with: dub init test -t vibe.d
 and get the same error code when running it.

 Any suggestions what could be wrong?
Any code for us to test?
Sep 19 2020