Thread overview
Vibe.d
Sep 19
Jack
Sep 19
Jack
September 19
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?


September 19
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.
September 19
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?
September 19
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
September 19
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