DMD returns -1073741819 despite success

A. Jung webmaster at aj-productions.de
Mon Apr 6 08:43:52 PDT 2009


After further research, I'm still convinced that this is a bug in DMD.
In your example above, you used "link.exe" to link the obj files into the final exe. Codeblocks, however, uses "dmd.exe" to link the obj files.

This is valid and the preferred way according to the DMD docs: "Linking is done directly by the dmd compiler after a successful compile. To prevent dmd from running the linker, use the -c switch.".

Codeblocks generates the following expanded console output, which looks reasonable to me:

"-------------- Build: debug in test2 ---------------

dmd.exe  -g -debug    -IC:\dmd\src\phobos  -c hello.d -ofobj\debug\hello.obj
dmd.exe bin\debug\test2.exe  obj\debug\hello.obj   phobos.lib 
Process terminated with status -1073741819 (0 minutes, 0 seconds)
0 errors, 0 warnings"

It worked worked this way before 2.017.


Kagamin Wrote:

> A. Jung Wrote:
> 
> > OK, now it looks like a configuration error of the Codeblocks IDE which happenend during the transition to the new D compiler directory structure. Still investigating...
> > 
> I keep old directory structure.



More information about the Digitalmars-d-bugs mailing list