1

After successfully executing the 'hello.c' program, I'm unable to execute 'mario.c' because terminal says 'stio.h' file not found (which IMO doesn't make any sense since 'hello.c' runs perfectly). Any ideas?

jharvard@appliance (~/Dropbox/pset1): make hello
clang -ggdb3 -O0 -std=c99 -Wall -Werror    hello.c  -lcs50 -lm -o hello
jharvard@appliance (~/Dropbox/pset1): ./hello
hello, world
jharvard@appliance (~/Dropbox/pset1): make mario
clang -ggdb3 -O0 -std=c99 -Wall -Werror    mario.c  -lcs50 -lm -o mario
**mario.c:1:10: fatal error: 'stio.h' file not found
#include <stio.h>
     ^
1 error generated.
2
  • 4
    This question appears to be off-topic because it concerns a simple typographical error and is unlikely to be helpful for future users.
    – Air
    Sep 11 '14 at 23:45
  • as beginner CS students (CS50s constituency), typos are very much on topic (imo). this thread did indeed help me, quite quickly. is "off-topic" deemed by stackexchange folks, or CS50 moderators? seems harsh.
    – mazal
    Dec 24 '14 at 7:17
3

Change it to

 #include <stdio.h>

You've got a typo.

Not the answer you're looking for? Browse other questions tagged .