extern or EXTERN... and using git

6 views
Skip to first unread message

Paul Dufresne

unread,
Jun 26, 2021, 7:15:29 PM6/26/21
to inferno-os
I am using git to "document" my clumsy changes:

But I am now at:
paul@kasparno:~/inferno-os/utils/5c$ LANG=C mk install
cc -m32  -o o.out cgen.o enam.o list.o mul.o peep.o pgen.o pswt.o reg.o sgen.o swt.o txt.o /home/paul/inferno-os/Linux/386/lib/libcc.a /home/paul/inferno-os/Linux/386/lib/libbio.a /home/paul/inferno-os/Linux/386/lib/lib9.a
/usr/bin/ld: mul.o:/home/paul/inferno-os/utils/5c/mul.c:609: multiple definition of `hintabsize'; list.o:/home/paul/inferno-os/utils/5c/gc.h:150: first defined here
collect2: error: ld returned 1 exit status
mk: cc -m32  ...  : exit status=exit(1)
paul@kasparno:~/inferno-os/utils/5c$ cat gc.h
[...]
EXTERN    long    maxargsafe;
EXTERN    int    mnstring;
EXTERN    Multab    multab[20];
EXTERN    int    hintabsize;
EXTERN    Node*    nodrat;
[...]

and realize EXTERN uppercase... not knowing much what it have compare to extern.

Think I will stop here for a while.

Paul Dufresne

unread,
Jun 26, 2021, 7:58:39 PM6/26/21
to inferno-os
Reply all
Reply to author
Forward
0 new messages