# include <cs50.h>
# include <stdio.h>
int main(void)
{
int age = get_int("what's your age?\n");
int days = age * 365;
printf("Your are at least %i days old.\n", days);
}
-------------------------------------------------------------------
$ clang age.c
/tmp/age-cd7f64.o: In function `main':
age.c:(.text+0x15): undefined reference to `get_int'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
컴파일이 안 됩니다.
어디가 문제인가요?
comment