dlangide icon indicating copy to clipboard operation
dlangide copied to clipboard

Error when linking on Windows

Open fivemoreminix opened this issue 7 years ago • 2 comments

When I go to build or run the program on Windows 10, with the latest version of Dub (1.5.0), and the latest version of DMD (2.076.0), I get a linker error. The following shows what the error looks like.

Firstly, I finish building the program and acquiring dependencies, after performing dub build:

PS C:\Users\luke\Desktop\dlangide-master> dub build
Fetching dcd 0.9.1 (getting selected version)...
Fetching dsymbol 0.2.9 (getting selected version)...
Fetching dlangui 0.9.120 (getting selected version)...
Fetching libdparse 0.7.1 (getting selected version)...
Performing "debug" build using dmd for x86.
emsi_containers 0.5.3: building configuration "library"...
libdparse 0.7.1: building configuration "library"...
dsymbol 0.2.9: building configuration "library"...
msgpack-d 1.0.0-beta.6: building configuration "library"...
dcd 0.9.1: building configuration "library"...
derelict-util 2.0.6: building configuration "library"...
derelict-ft 1.1.3: building configuration "library"...
derelict-gl3 1.0.23: building configuration "library"...
derelict-sdl2 2.0.2: building configuration "library"...
dlangui 0.9.120: building configuration "default"...
dlangide ~master: building configuration "default"...

Secondly, I get a message in my console that stays for about 4 seconds ("Linking..."), then I get a message box dialog: image

Lastly, after I close the dialog, the error shows in the console:

Error: linker exited with status 1
dmd failed with exit code 1.

If you have any more questions, do ask.

fivemoreminix avatar Sep 10 '17 22:09 fivemoreminix

It's linker error. You need to try to build it with --arch=x86_64 Windows SDK or VS Studio should be installed.

bubnenkoff avatar Sep 11 '17 07:09 bubnenkoff

Reproduced similar issue when trying to build unittest. X64 Win7, x86 build

buggins avatar Sep 11 '17 10:09 buggins