Thread overview
Running vibe.d tutorial on Windows?
Feb 26, 2019
shadowgun1102
Feb 26, 2019
JN
Feb 26, 2019
bauss
Feb 26, 2019
bauss
Feb 26, 2019
JN
Feb 26, 2019
Andre Pany
Feb 26, 2019
Suliman
February 26, 2019
I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:

dub init tut -t vibe.d
cd tut
dub

I get this error: https://postimg.cc/gwTB6y0G

I tried adding

"subConfigurations": {"vibe-d": "win32"}

to my dub.json, but that didn't seem to change anything.
February 26, 2019
On Tuesday, 26 February 2019 at 08:11:15 UTC, shadowgun1102 wrote:
> I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:
>
> dub init tut -t vibe.d
> cd tut
> dub
>
> I get this error: https://postimg.cc/gwTB6y0G
>
> I tried adding
>
> "subConfigurations": {"vibe-d": "win32"}
>
> to my dub.json, but that didn't seem to change anything.

Such topics would probably do better in the "Learn" section.

Looks like an optlink issue. Have you tried building for x86_64 or with "--build=x86_mscoff" dub switch? I believe this skips the optlink and uses VC++ linker instead, which should work better.
February 26, 2019
On Tuesday, 26 February 2019 at 08:11:15 UTC, shadowgun1102 wrote:
> I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:
>
> dub init tut -t vibe.d
> cd tut
> dub
>
> I get this error: https://postimg.cc/gwTB6y0G
>
> I tried adding
>
> "subConfigurations": {"vibe-d": "win32"}
>
> to my dub.json, but that didn't seem to change anything.

Compile with -a=x8s_mscoff

Plenty of discussions about it.
February 26, 2019
On Tuesday, 26 February 2019 at 10:34:19 UTC, bauss wrote:
> On Tuesday, 26 February 2019 at 08:11:15 UTC, shadowgun1102 wrote:
>> I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:
>>
>> dub init tut -t vibe.d
>> cd tut
>> dub
>>
>> I get this error: https://postimg.cc/gwTB6y0G
>>
>> I tried adding
>>
>> "subConfigurations": {"vibe-d": "win32"}
>>
>> to my dub.json, but that didn't seem to change anything.
>
> Compile with -a=x8s_mscoff
>
> Plenty of discussions about it.

-a=x86_mscoff

Sorry for the typo.
February 26, 2019
On Tuesday, 26 February 2019 at 10:35:10 UTC, bauss wrote:
> On Tuesday, 26 February 2019 at 10:34:19 UTC, bauss wrote:
>> On Tuesday, 26 February 2019 at 08:11:15 UTC, shadowgun1102 wrote:
>>> I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:
>>>
>>> dub init tut -t vibe.d
>>> cd tut
>>> dub
>>>
>>> I get this error: https://postimg.cc/gwTB6y0G
>>>
>>> I tried adding
>>>
>>> "subConfigurations": {"vibe-d": "win32"}
>>>
>>> to my dub.json, but that didn't seem to change anything.
>>
>> Compile with -a=x8s_mscoff
>>
>> Plenty of discussions about it.
>
> -a=x86_mscoff
>
> Sorry for the typo.

Any reason why it's not the default? I don't see any reasons for x86 (rather than x86_64) to be the default, given how many problems it causes. Honestly, even better, on 64bit OSes (99% of users?) x86_64 should be the default.
February 26, 2019
On Tuesday, 26 February 2019 at 10:46:24 UTC, JN wrote:
> On Tuesday, 26 February 2019 at 10:35:10 UTC, bauss wrote:
>> On Tuesday, 26 February 2019 at 10:34:19 UTC, bauss wrote:
>>> On Tuesday, 26 February 2019 at 08:11:15 UTC, shadowgun1102 wrote:
>>>> I'm trying to run/build the vibe.d tutorial on Windows. When I run the following:
>>>>
>>>> dub init tut -t vibe.d
>>>> cd tut
>>>> dub
>>>>
>>>> I get this error: https://postimg.cc/gwTB6y0G
>>>>
>>>> I tried adding
>>>>
>>>> "subConfigurations": {"vibe-d": "win32"}
>>>>
>>>> to my dub.json, but that didn't seem to change anything.
>>>
>>> Compile with -a=x8s_mscoff
>>>
>>> Plenty of discussions about it.
>>
>> -a=x86_mscoff
>>
>> Sorry for the typo.
>
> Any reason why it's not the default? I don't see any reasons for x86 (rather than x86_64) to be the default, given how many problems it causes. Honestly, even better, on 64bit OSes (99% of users?) x86_64 should be the default.

My understanding is, just someone is needed to create the pull request.
There were good reasons in the past to have x86, in the meantime a lot changed
and we should change to x86_64 and 64 bit dmd sooner than later.

Kind regards
André
February 26, 2019
my solution is:
dub -b=release

Do not know why it's working.