Unable to access any function in cs50.h like GetInt(); or GetString();

Gives an error- undefined reference to GetInt..

And i'm using #include and also tried #include"cs50.h" And i don't think the problem is with the directory in which it is stored otherwise it would react in same way for other header files also.


1 Answer 1


Are you using the virtual machine? If that's the case, then execute:


It will update your vm to the latest version. It will probably fix the issue.

If you are not using the vm, the download the libraries from: https://github.com/cs50/library50-c

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