DUB / compiling same source and config to different windows subsystems in 32/64 bit

Robert M. Münch robert.muench at saphirion.com
Mon Mar 4 18:34:09 UTC 2019


Hi, when compiling a minimal Windows GUI app (using WinMain()) and 
compiling it with DUB, the 32-bit x86 version is a character subsystem 
EXE (writeln works) and for x86_64 it's a GUI subsystem EXE (writeln 
doesn't work). Since compiling the same source, with the same DUB 
config file, I would expect the x86 and x86_64 version to be equal.

That's the DUB JSON I use:

{
	"targetType" : "executable",

  	"libs-windows-x86_64": ["user32", "gdi32"],
  	"libs-windows-x86"   : ["gdi32"],
}

So, how can I get a character subsystem for x86_64 and a GUI subsystem for x86?

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster



More information about the Digitalmars-d-learn mailing list