Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include errors detect , cannot open source file "cs50.h" #328

Open
Foz1984 opened this issue May 13, 2024 · 4 comments
Open

Include errors detect , cannot open source file "cs50.h" #328

Foz1984 opened this issue May 13, 2024 · 4 comments

Comments

@Foz1984
Copy link

Foz1984 commented May 13, 2024

while I am writing code #include <cs50.h>, it gives error "Include errors detect , cannot open source file "cs50.h".

@Landixbtw
Copy link

Landixbtw commented May 15, 2024

are you on your local ide ? If yes, are you using windows, macos linux ?
(next time, please ask on one of the other online communities )

@nandarwin19
Copy link

while I am writing code #include <cs50.h>, it gives error "Include errors detect , cannot open source file "cs50.h".

I guess it might be helpful for you
https://www.youtube.com/watch?v=ad0HHLldK-c

@afifafifafifafifali
Copy link

Are you logged in as root? Because it causes problems when logged in as root because the 'root' user isn't told to that the "cs50.h" is a built-in library. You may download the source code of cs50 and put the files "cs50.h" and "cs50.c" to a directory on your workspace .
To include it , type :

#include "yourdir/cs50.h"
//Note: #include <example.h> means built-in header ,  and #include "example.h" means user-written directory.

@afifafifafifafifali
Copy link

Question is, how do I know everything of this.
Answer: I'm a Operating System developer . It is a hard project and includes the least used things in the C programming language . E.g. Writing your own standard header files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants