the simple hello world program compiles, but there is no output?
I have looked at the other command line topics but no one mentions this.
I have to use the command line till someone fixes the installation problem with old licenses.
Here is the code.
(* compile with elements.exe *)
namespace MyFirstApp;
interface
uses
System;
type
(*Program = class*)
ConsoleApp = class
public
class method Main(args: array of String): Int32;
end;
Implementation
class method ConsoleApp.Main(args: array of String): Int32;
begin
System.Console.Writeline('Hello oxygene world!');
end;
end.
Well, the exe ‘seems’ to run, but I see no characters displayed in the console. I run console programs all the time, and the programs compiled with elements successfully compile and ‘run’ but I do not see any output.
Perhaps it is related to my installation problem with the trial version of elements.
I do not know how to do that because I am the guy with the expired license problem installing elements. As a temporary thing I am compiling and executing from a console window. This used to work before I ‘upgraded’ to the present version nine.
Paul Breen
Sorry for the delay. you might need to pass --type=exe to the compiler in that case, because the default probably is winexe, and winexe executables are gui-only and don’t get a console.