[M3devel] [M3Devel] Bug report: compiler output option "-o" not working

Peter Eiserloh eiserlohpp at yahoo.com
Sun May 31 20:57:44 CEST 2009


Hi Guys,

A simple hello world program 


MODULE Hello EXPORTS Main;

IMPORT IO;

BEGIN
        IO.Put("Hello Modula-3 World.\n");
END Hello.


Compiles and links when the compiler is invoked as
   $ cm3

but fails when invoked as
   $ cm3 -o Hello

With the following error message:
   peter at black:~/modula-3/m3hello $ cm3 -o Hello
   --- building in AMD64_LINUX ---

   -> linking Hello

   Fatal Error: incomplete program

   missing "Main" module



+--------------------------------------------------------+
| Peter P. Eiserloh                                      |
+--------------------------------------------------------+


      



More information about the M3devel mailing list