Just for context I am an absolute beginner related to any coding. Currently I'm trying to run the code from the cs-50 video, but I get the same error every time.
#include "cs50.h"
#include <stdio.h>
int main (void)
{
int x = get_int("x: ");
int y = get_int("y: ");
printf("%i\n", x+y );
}
Commands used for compiling:
cc calculator.c -o calculator
Undefined symbols for architecture arm64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [calculator] Error 1