🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #7057

Help with Sozobon||

#7057
From: T6M-RIIT
Date: Tue, 16 Jan 1990 12:03
55 lines
2581 bytes
Hi everybody!

I'm trying to learn C with Sozobon. I already got my *first* program
written and I've been trying to compile it with no remarkable success.

1)  Tried cc:
        cc hello
    (why do the first programs always say hello?...)
    A comment returned: can't find library 'HELLO'
    No library found? Well, let's name one..
        cc hello libm
    - got the same line again.
    OK, I'll give up.

2)  Let's try the other way, do it piecewise.
        hcc hello.c
    goes fine. Got a nice assembly language file hello.s. But it sure
    could use some optimization:
        top hello.s
    Yap, the file sure looks prettier (and a whole lotta shorter). Now
    let's assemble it to hello.o.
        jas hello.s
    ...the program spits out words of warning:
        usage: as [-N] source [-o object]
    and dammit that's just what I gave 'im, ain't it? (except the spelling
    error - Joe's missing?)

3)  Well well, there is still the make utility (the doc of which I just
    can't understand and got no UNIX manual at hand). I cook up a file
    called MAKEFILE with
        hello.tos: hello.o
            cc -o hello.tos hello.o
    in it - copied straight from a USENET news article sometime in August.
    Wonder if there's any sense in this... well, type make.
    "No targets provided near line 2". I take the monitor and smash it on
    the wall and eat the ST and go hang myself.

Now what the *ell (this does not mean Bell - hee haw haw..) am I doing
wrong? I am running a shell, PCommand, with environment variables LIB=
d:\sozobon\lib and INCLUDE=d:\sozobon\include (these shouldn't even be
needed if I got it right) and search path set to d:\sozobon;d:\sozobon\bin.
(\ is of course backslash no matter what it looks like to you).

Is there some kind soul who could shed some light on my ignorance;
especially about make.


                                            Jari



----------------- this message was authored by --------------------------------
      Jari Riitala                  still:     t6m-riit@mammutti.utu.fi
                                    also:      jriitala@kontu.utu.fi
-------------------------------------------------------------------------------
Technical Details
Message-ID: <1037T6M-RIIT@FINTUVM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!sunic!tut!router!fintuvm.bitnet!t6m-riit

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!sunic!tut!router!fintuvm.bitnet!t6m-riit
From: T6M-RIIT@FINTUVM.BITNET
Newsgroups: comp.sys.atari.st
Subject: Help with Sozobon||
Message-ID: <1037T6M-RIIT@FINTUVM>
Date: 16 Jan 90 12:03:12 GMT
Organization: University of Turku, Finland
Lines: 55