I see the error c:UsersDELLAppDataLocalTempcc61L1BV.o:test.c:(.text+0x1e): undefined reference to `get_string’
collect2.exe: error: ld returned 1 exit status
c
#include <stdio.h>
#include <cs50.h>
int main(void)
{
string name = get_string ("what is your name?: ")
;printf("hello world%s", name);
}```
when typing: make test it's showing me this:
cc test.c -o test
test.c:2:10: fatal error: cs50.h: No such file or directory
2 | #include <cs50.h>
| ^~~~~~~~
compilation terminated.
make: *** [<builtin>: test] Error 1
New contributor
ayham is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1