Need Help with error

Joined
Dec 14, 2022
Messages
1
Reaction score
0
#include <stdio.h>
#include <cs50.h>
int main()
{
string answer = get_string("What's your name?\n");
printf("Hello, answer\n");
}


Hi all as you can already imagine I am new to programming. I need help with an error code I get when I am typing in this code from cs50 course. Answers are much appreciated!

Undefined symbols for architecture arm64:
"_get_string", referenced from:
_main in hello-f3c59a.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [hello] Error 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,708
Messages
2,569,346
Members
44,650
Latest member
LuckyVivo

Latest Threads

Top