I try to complile the program below in 10.2's terminal and I get this error:
[powerbook:/cs240] jason% cc ./hello.c
/usr/bin/ld: /usr/lib/libSystem.dylib load command 9 unknown cmd field
What am I doing wrong?
#include <stdio.h>
int main(void)
{
int n, count;
char myChar;
printf("Please enter an alphabetic character to print: ");
scanf("%c", &myChar);
printf("Please enter times to print: ");
scanf("%d", &n);
printf("\n\n");
for (count=0; count < n; count++)
{
printf("%c", myChar);
}
printf("\n");
return 0;
}