Groups | Search | Server Info | Login | Register
Groups > comp.lang.oberon > #722
| From | cross@spitfire.i.gajendra.net (Dan Cross) |
|---|---|
| Newsgroups | comp.lang.oberon |
| Subject | Re: Error compiling a simple Hello World program |
| Date | 2026-01-14 21:09 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <10k90mt$jtb$1@reader2.panix.com> (permalink) |
| References | <20260110234635.aec15496f9b94e281c2f4410@gmail.com> <10k3p3p$6e4$1@reader2.panix.com> <20260114113923.cc18e376fa2de2e203042c99@gmail.com> |
In article <20260114113923.cc18e376fa2de2e203042c99@gmail.com>,
Sidney Reilley <sidney.reilley.ii@gmail.com> wrote:
>On Mon, 12 Jan 2026 21:29:29 -0000 (UTC)
>cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>
>Hello ...
>
>I wasn't too sure how often you check the Oberon newsgroup, so I took the
>liberty of posting this msg to you directly as well. I sure hope that you don't
>mind. If you do, let me know and it won't happen again!
Not a problem, though in general it's probably better to post
here.
>> Give the full pathname to the module source file, and make
>> sure you've got a `BEGIN` line before `Out.String('...');`
>
>Done! Why I forgot the BEGIN I'll never know!
No big deal. We all make mistakes. :-)
>> term% find .
>> .
>> ./src
>> ./src/hello.Mod
>
>Not using the .Mod extension was another problem. Apparently `oo2c' does NOT
>like .mod.
>
>After fixing those issues, `oo2c -M src/hello.Mod' ran without any errors or
>warnings - BUT nothing showed up in bin/.
>
>/sym and /obj got populated, but not /bin.
>I'm thinking that this is a `linker' problem - `oo2c' is not finding `ld'. Does
>my suspicion make any sense? TIA ....
Honestly, I'm not sure.
Given that, as you say, there were no errors or warnings emitted
I would assume that everything ran to completion successfully,
including the linker. If I artificially move the linker out of
the way on my system so that there is no `ld` binary and run
`oo2c`, I get an error:
term% oo2c -M src/hello.Mod 2>&1
collect2: fatal error: cannot find 'ld'
compilation terminated.
term%
That suggests to me that if there were a problem either invoking
the linker or it encountered some kind of error, you'd see a
message of some kind.
What files _do_ exist for you?
And what does your module look like now?
- Dan C.
Back to comp.lang.oberon | Previous | Next — Previous in thread | Next in thread | Find similar
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