[comp.os.minix] scanf

KIMMEL%ecs.umass.edu@relay.cs.net (Matt Kimmel) (12/09/87)

I just got Minix v1.2, and I like it a lot.  However, when I try to
compile a C program that calls scanf(), I get a message to the effect
of " _scanf not resolved".  Am I missing something?  Or is there no scanf()
in Minix' libraries?

ast@cs.vu.nl (Andy Tanenbaum) (12/11/87)

In article <782@louie.udel.EDU> KIMMEL%ecs.umass.edu@relay.cs.net (Matt Kimmel) writes:
>I just got Minix v1.2, and I like it a lot.  However, when I try to
>compile a C program that calls scanf(), I get a message to the effect
>of " _scanf not resolved".  Am I missing something?  Or is there no scanf()

There is a scanf in libsrc.a, but it is not included in libc.a.  You have to
compile it yourself with cc -LIB -c scanf.c and put in in the library.
It was omitted from libc.a because there was no room on that diskette!

Andy Tanenbaum (ast@cs.vu.nl)