On Ubuntu 14.10, how to automatically link cs50.h when using make, without needing to link it manually like with GCC.
I need to make cs50 link automatically when I call make on my c file.
When I use "make ages", I get the following error.
cc ages.c -o ages
/tmp/ccq2ouVM.o: In function `main':
ages.c:(.text+0x30): undefined reference to `GetInt'
ages.c:(.text+0xc7): undefined reference to `GetInt'
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'ages' failed
make: *** [ages] Error 1