Groups | Search | Server Info | Login | Register


Groups > comp.lang.oberon > #719

Re: Error compiling a simple Hello World program

From cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups comp.lang.oberon
Subject Re: Error compiling a simple Hello World program
Date 2026-01-12 21:29 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <10k3p3p$6e4$1@reader2.panix.com> (permalink)
References <20260110234635.aec15496f9b94e281c2f4410@gmail.com>

Show all headers | View raw


In article <20260110234635.aec15496f9b94e281c2f4410@gmail.com>,
Sidney Reilley  <sidney.reilley.ii@gmail.com> wrote:
>This post is a duplicate of the one I just posted on the oo2c mailing list on
>Sourceforge.
>
>Revisiting `oo2c' on a dare!
>
>I keep getting this error:
>
>[quote]
>$ oo2c -M ./src/hello
>## Exception: IO.FileNotFound
>## No such file or directory: sym/hello.Sym
>
>0: oo2c(+0x6762b) [0x55619969662b]
>1: oo2c(+0x68383) [0x556199697383]
>2: oo2c(+0x7f815) [0x5561996ae815]
>3: oo2c(+0x7f8a9) [0x5561996ae8a9]
>4: oo2c(+0xc8aae) [0x5561996f7aae]
>5: oo2c(+0x192f87) [0x5561997c1f87]
>6: oo2c(+0x193cec) [0x5561997c2cec]
>7: oo2c(+0x194d8f) [0x5561997c3d8f]
>8: oo2c(+0x1946ab) [0x5561997c36ab]
>9: oo2c(+0x194f7f) [0x5561997c3f7f]
>10: oo2c(+0x1977f3) [0x5561997c67f3]
>11: oo2c(+0x198b65) [0x5561997c7b65]
>12: oo2c(+0x6243a) [0x55619969143a]
>13: /usr/lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7f5209e2b24a]
>14: /usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f5209e2b305]
>15: oo2c(+0x62471) [0x556199691471]
>[/quote]
>
>Compiling the following:
>
>MODULE hello;
>IMPORT Out;
>
>Out.String('a quarter mile is:');Out.Ln;
>
>END hello.
>
>I'm on a Linux x64 box! Any ideas? TIA ...

Give the full pathname to the module source file, and make
sure you've got a `BEGIN` line before `Out.String('...');`

term% find .
.
./src
./src/hello.Mod
term% cat src/hello.Mod
MODULE hello;
IMPORT Out;

BEGIN

  Out.String('Hello, World!');
  Out.Ln;

END hello.
term% oo2c -M src/hello.Mod
term% ls
bin
obj
src
sym
term% ls bin
.libs
hello
term% bin/hello
Hello, World!
term% 

        - Dan C.

Back to comp.lang.oberon | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Error compiling a simple Hello World program Sidney Reilley <sidney.reilley.ii@gmail.com> - 2026-01-10 23:46 -0700
  Re: Error compiling a simple Hello World program cross@spitfire.i.gajendra.net (Dan Cross) - 2026-01-12 21:29 +0000
    Re: Error compiling a simple Hello World program Sidney Reilley <sidney.reilley.ii@gmail.com> - 2026-01-14 09:59 -0700
    Re: Error compiling a simple Hello World program Sidney Reilley <sidney.reilley.ii@gmail.com> - 2026-01-14 11:39 -0700
      Re: Error compiling a simple Hello World program cross@spitfire.i.gajendra.net (Dan Cross) - 2026-01-14 21:09 +0000
        Re: Error compiling a simple Hello World program Sidney Reilley <sidney.reilley.ii@gmail.com> - 2026-01-14 14:30 -0700
          Re: Error compiling a simple Hello World program cross@spitfire.i.gajendra.net (Dan Cross) - 2026-01-14 23:25 +0000
            Re: Error compiling a simple Hello World program Sidney Reilley <sidney.reilley.ii@gmail.com> - 2026-01-14 19:32 -0700
              Re: Error compiling a simple Hello World program cross@spitfire.i.gajendra.net (Dan Cross) - 2026-01-15 21:36 +0000
                Re: Error compiling a simple Hello World program Sidney Reilley <sidney.reilley.ii@gmail.com> - 2026-01-15 16:12 -0700
                Re: Error compiling a simple Hello World program cross@spitfire.i.gajendra.net (Dan Cross) - 2026-01-16 13:18 +0000
                Re: Error compiling a simple Hello World program Sidney Reilley <sidney.reilley.ii@gmail.com> - 2026-01-16 08:54 -0700

csiph-web