Open IMSurani opened 4 years ago
You need the gnu tools (as/ld etc.) installed and in your PATH on windows. This will probably only work if you are running under cygwin/wls.
@vargaz thanks for this very useful info, but I am still not able to compile it and get below error.
My aim is to compile .Net IL into native Win32 to prevent from ILSpy.
D:\Surani\HelloWorld>mono --aot=full program.exe Mono Ahead of Time compiler - compiling assembly D:\Surani\HelloWorld\program.exe AOTID 798B10B8-7478-208B-1C7E-087904B1EF21 Compiled: 4/4 Executing the native assembler: "as" --32 -o C:\Users\Surani\AppData\Local\Temp \mono_aot_a08496.o C:\Users\Surani\AppData\Local\Temp\mono_aot_a08496 Executing the native linker: gcc -shared -Wl,-Bsymbolic -o D:\Surani\HelloWorld\ program.exe.dll.tmp C:\Users\Surani\AppData\Local\Temp\mono_aot_a08496.o AOT of image program.exe failed.
You need the gnu tools (as/ld etc.) installed and in your PATH on windows. This will probably only work if you are running under cygwin/wls.
@vargaz I tried but it still doesn't work. Does mono work with .net framework? Or is there a workaround for this?
I am getting this error while compiling simple c# helloworld program : mono --aot program.exe
Mono Ahead of Time compiler - compiling assembly D:\Surani\HelloWorld\program.exe AOTID 711E6D52-52CF-C036-BD22-EB3708478199 Compiled: 2/2 Executing the native assembler: "as" --32 -o C:\Users\Surani\AppData\Local\Temp \mono_aot_a13844.o C:\Users\Surani\AppData\Local\Temp\mono_aot_a13844 '"as"' is not recognized as an internal or external command, operable program or batch file. AOT of image program.exe failed.