Compile with the "-traditional" option. It notices "__STDC__" defined, and so doesn't declare "printf" as a function, and then it tries to define something (on io.c, line 51) that references "printf", but it isn't declared so you can't use it that way. \nick