www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Running vibe.d tutorial on Windows?

reply shadowgun1102 <shadowgun3108 gmail.com> writes:
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.
Feb 26 2019
next sibling parent JN <666total wp.pl> writes:
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.
Feb 26 2019
prev sibling parent reply bauss <jj_1337 live.dk> writes:
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.
Feb 26 2019
parent reply bauss <jj_1337 live.dk> writes:
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.
Feb 26 2019
parent reply JN <666total wp.pl> writes:
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.
Feb 26 2019
parent reply Andre Pany <andre s-e-a-p.de> writes:
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é
Feb 26 2019
parent Suliman <evermind live.ru> writes:
my solution is:
dub -b=release

Do not know why it's working.
Feb 26 2019