0

I am working through the CS50 course and downloaded the cs50.h file into the same directory as my cs50.c file.

However, I am receiving a fatal error cs50.h: No such file or directory when i include the cs50.h header in my program

#include <cs50.h>

Any suggestions, please? I'm using Code::Blocks 20.03

Cheers

Jonathan Leffler
  • 698,132
  • 130
  • 858
  • 1,229

1 Answers1

1
  • if it's not from an official lib you can't use <> you need to use "". But it's not a fatal error it doesn't really matter.
  • if it's in another directory you need to specify the path like so include "/file/anotherFile/cs50.h".
  • if it's your current directory you can write it like that it might fix the problem "./cs50.h"

hope it helped you !

Tsirsuna
  • 110
  • 13