I am receiving the following error while compiling my code:
jharvard@appliance (~/Dropbox/pset2): make initials
clang -ggdb3 -O0 -std=c99 -Wall -Werror initials.c -lcs50 -lm -o initials
initials.c:7:12: error: unused variable 's' [-Werror,-Wunused-variable]
string s = GetString();
^
1 error generated.
make: *** [initials] Error 1
Here is my code:
#include <stdio.h>
#include <cs50.h>
int main(void)
{
printf("Please enter your full name: ");
string s = GetString();
return 0;
}
I have tried the programs that David writes in the shorts: string-0, string-1 and string-2 and they all work when I write them. I have run update50 and restarted my virtual machine as well as recreating the pset2 directory after rm files and rmdir directory. Any suggestions?