www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Vibe.d throw link error

reply greatsam4sure <greatsam4sure gmail.com> writes:
I am using windows 10. I could not run vibe project. It just give 
me the error:

Error: linker exit with status 1
Dmd failed  with exit code 1

I have use different dmd from 0.080 till 0.083. The same error.

What is the possible cause and solution to this error?
Jan 02 2019
next sibling parent reply bauss <jj_1337 live.dk> writes:
On Wednesday, 2 January 2019 at 20:52:26 UTC, greatsam4sure wrote:
 I am using windows 10. I could not run vibe project. It just 
 give me the error:

 Error: linker exit with status 1
 Dmd failed  with exit code 1

 I have use different dmd from 0.080 till 0.083. The same error.

 What is the possible cause and solution to this error?
Some more information would be useful. Compiler flags, dub configuration and OS.
Jan 02 2019
parent reply greatsam4sure <greatsam4sure gmail.com> writes:
On Wednesday, 2 January 2019 at 21:46:57 UTC, bauss wrote:
 Error: linker exit with status 1
 Dmd failed  with exit code 1
This is all the compiler emit
Jan 02 2019
next sibling parent reply Me <me home.co> writes:
On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure wrote:
 On Wednesday, 2 January 2019 at 21:46:57 UTC, bauss wrote:
 Error: linker exit with status 1
 Dmd failed  with exit code 1
This is all the compiler emit
Windows 10 --- got it VibeD project --- got it Error --- got it What exactly were you trying to do? What you have given so far offers no incite. Try providing a bit more information, offending code, cli command and associated arguments used, etc...
Jan 02 2019
parent reply greatsam4sure <greatsam4sure gmail.com> writes:
On Thursday, 3 January 2019 at 04:57:57 UTC, Me wrote:
 On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure 
 wrote:
 On Wednesday, 2 January 2019 at 21:46:57 UTC, bauss wrote:
 Error: linker exit with status 1
 Dmd failed  with exit code 1
This is all the compiler emit
Windows 10 --- got it VibeD project --- got it Error --- got it What exactly were you trying to do? What you have given so far offers no incite. Try providing a bit more information, offending code, cli command and associated arguments used, etc...
Really don't know the cause. All dependence are up to date. No offending code to the best of my knowledge. All I did create a vibe.d project using dub unit HelloWorld --type=vibe.d After which run the program in 's code using dub. All dependence compile but after showing linking, it will throw link error. I have run vibe.d project before. It just straight forward
Jan 04 2019
parent reply bauss <jj_1337 live.dk> writes:
On Friday, 4 January 2019 at 09:48:55 UTC, greatsam4sure wrote:
 On Thursday, 3 January 2019 at 04:57:57 UTC, Me wrote:
 On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure 
 wrote:
 On Wednesday, 2 January 2019 at 21:46:57 UTC, bauss wrote:
 Error: linker exit with status 1
 Dmd failed  with exit code 1
This is all the compiler emit
Windows 10 --- got it VibeD project --- got it Error --- got it What exactly were you trying to do? What you have given so far offers no incite. Try providing a bit more information, offending code, cli command and associated arguments used, etc...
Really don't know the cause. All dependence are up to date. No offending code to the best of my knowledge. All I did create a vibe.d project using dub unit HelloWorld --type=vibe.d After which run the program in 's code using dub. All dependence compile but after showing linking, it will throw link error. I have run vibe.d project before. It just straight forward
Try to compile with -a=x86_mscoff if you're on Windows at least.
Jan 04 2019
parent reply greatsam4sure <greatsam4sure gmail.com> writes:
On Friday, 4 January 2019 at 09:56:14 UTC, bauss wrote:
 On Friday, 4 January 2019 at 09:48:55 UTC, greatsam4sure wrote:
 On Thursday, 3 January 2019 at 04:57:57 UTC, Me wrote:
 On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure 
 wrote:
 [...]
Windows 10 --- got it VibeD project --- got it Error --- got it What exactly were you trying to do? What you have given so far offers no incite. Try providing a bit more information, offending code, cli command and associated arguments used, etc...
Really don't know the cause. All dependence are up to date. No offending code to the best of my knowledge. All I did create a vibe.d project using dub unit HelloWorld --type=vibe.d After which run the program in 's code using dub. All dependence compile but after showing linking, it will throw link error. I have run vibe.d project before. It just straight forward
Try to compile with -a=x86_mscoff if you're on Windows at least.
Thanks this work for me. What is the reason I must add -a=x86-mscoff to dub before my code compiles. What can I do to compile or run vibe.d project without adding -a=x86-mscoff to dub Thanks in advance
Jan 05 2019
parent bauss <jj_1337 live.dk> writes:
On Saturday, 5 January 2019 at 18:44:33 UTC, greatsam4sure wrote:
 On Friday, 4 January 2019 at 09:56:14 UTC, bauss wrote:
 On Friday, 4 January 2019 at 09:48:55 UTC, greatsam4sure wrote:
 On Thursday, 3 January 2019 at 04:57:57 UTC, Me wrote:
 On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure 
 wrote:
 [...]
Windows 10 --- got it VibeD project --- got it Error --- got it What exactly were you trying to do? What you have given so far offers no incite. Try providing a bit more information, offending code, cli command and associated arguments used, etc...
Really don't know the cause. All dependence are up to date. No offending code to the best of my knowledge. All I did create a vibe.d project using dub unit HelloWorld --type=vibe.d After which run the program in 's code using dub. All dependence compile but after showing linking, it will throw link error. I have run vibe.d project before. It just straight forward
Try to compile with -a=x86_mscoff if you're on Windows at least.
Thanks this work for me. What is the reason I must add -a=x86-mscoff to dub before my code compiles. What can I do to compile or run vibe.d project without adding -a=x86-mscoff to dub Thanks in advance
Because the default linker for DMD is buggy so using the Microsoft linker will do the job.
Jan 05 2019
prev sibling parent bauss <jj_1337 live.dk> writes:
On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure wrote:
 On Wednesday, 2 January 2019 at 21:46:57 UTC, bauss wrote:
 Error: linker exit with status 1
 Dmd failed  with exit code 1
This is all the compiler emit
I'm not asking for the error or what the compiler emits. I'm asking how you're compiling vibe.d, what are your configurations etc.
Jan 03 2019
prev sibling parent Seb <seb wilzba.ch> writes:
On Wednesday, 2 January 2019 at 20:52:26 UTC, greatsam4sure wrote:
 I am using windows 10. I could not run vibe project. It just 
 give me the error:

 Error: linker exit with status 1
 Dmd failed  with exit code 1

 I have use different dmd from 0.080 till 0.083. The same error.

 What is the possible cause and solution to this error?
Have you tried using the MSCOFF output of DMD?
Jan 03 2019