I'm using visual studio code, in window 10 device, and live in a area where internet accessibility is not good.
I have completed of lecturers of first week of cs50x.
Had extracted cs50.h
and cs50.c
and copy them to C:\msys64\mingw64\include\
Now after running the code, I'm getting undefined reference to 'get_int'
and Id returned 1 exit status
.
- After going through some online solutions, I get this
In your source code, change
#include <cs50.h>
to#include <cs50.c>
But I'm not finding any<cs50.h>
incs50.c source file
instead it has"cs50.h"
- I'm not able to understand
How to link cs50 when compiling your code with clang, by using
-lcs50