Invalid Assembly Generated

evilrat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 4 04:13:59 PDT 2014


On Saturday, 4 October 2014 at 09:40:24 UTC, Bauss wrote:
> I am not able to run the output file compiled. I am not sure if 
> it might be an error with my commandline or not.
>
> Operating System: Windows 8
> Commandline Arguments Try1: -c hello.d out\hello.exe
> Commandline Arguments Try2: -c hello.d -m32 out\hello.exe
>
> hello.d:
> import std.stdio;
>
> void main()
> {
> 	writeln("Hello World!");
> 	readln();
> }
>
> When I run the executable generated Windows 8 says "This app 
> can't run on your PC" "To find a version for your PC, check 
> with the software publisher."
>
> I figured that it might be because it compiles x64 and I have 
> to run x86, but I already tried compiling it as x86 using -m32.

you don't need that -c , it means do not link, of course you get 
"This app can't run..." with this.


More information about the Digitalmars-d-learn mailing list