← Back to Community
##### how to use cs50.h library or any custom .h header file
Profile icon
iairsalem

I need to use the Shell so I guess I have to compile the .c files myself.
here, it's only one .c file, but I have to use cs50.h library (available on github).

When trying to compile manually (with clang) I ran into a lot of issues. I tried compiling the .h file first (to pch) and it compiled, but when trying to compile the .c error after error.

Is there a simple way to have it working?

Thanks!

Voters
Profile icon
NikhilMuzumdar
Profile icon
AkashBasak
Profile icon
asiribnabdumali
Profile icon
Drallas
Profile icon
AgungKurniawan1
Profile icon
iliavialykh
Profile icon
christinacodes
Profile icon
iairsalem