checoimg
September 5th, 2012, 09:05 PM
I'm making an exercise and I get an error.
zahory@frogui:~/C programming$ gcc -c bill.c fred.c
bill.c: In function bill:
bill.c:4:2: error: stray \342 in program
bill.c:4:2: error: stray \200 in program
bill.c:4:2: error: stray \234 in program
bill.c:4:16: error: expected ) before : token
bill.c:4:16: error: stray \ in program
bill.c:4:16: error: stray \342 in program
bill.c:4:16: error: stray \200 in program
bill.c:4:16: error: stray \235 in program
bill.c:4:16: warning: passing argument 1 of printf from incompatible pointer type [enabled by default]
/usr/include/stdio.h:363:12: note: expected const char * __restrict__ but argument is of type void (*)(char *)
bill.c:4:16: warning: format not a string literal and no format arguments [-Wformat-security]
fred.c: In function fred:
fred.c:4:2: error: stray \342 in program
fred.c:4:2: error: stray \200 in program
fred.c:4:2: error: stray \234 in program
fred.c:4:16: error: expected ) before : token
fred.c:4:16: error: stray \ in program
fred.c:4:16: error: stray \342 in program
fred.c:4:16: error: stray \200 in program
fred.c:4:16: error: stray \235 in program
fred.c:4:16: warning: passing argument 1 of printf from incompatible pointer type [enabled by default]
/usr/include/stdio.h:363:12: note: expected const char * __restrict__ but argument is of type void (*)(int)
fred.c:4:16: warning: format not a string literal and no format arguments [-Wformat-security]
zahory@frogui:~/C programming$ gcc -c bill.c fred.c
bill.c: In function bill:
bill.c:4:2: error: stray \342 in program
bill.c:4:2: error: stray \200 in program
bill.c:4:2: error: stray \234 in program
bill.c:4:16: error: expected ) before : token
bill.c:4:16: error: stray \ in program
bill.c:4:16: error: stray \342 in program
bill.c:4:16: error: stray \200 in program
bill.c:4:16: error: stray \235 in program
bill.c:4:16: warning: passing argument 1 of printf from incompatible pointer type [enabled by default]
/usr/include/stdio.h:363:12: note: expected const char * __restrict__ but argument is of type void (*)(char *)
bill.c:4:16: warning: format not a string literal and no format arguments [-Wformat-security]
fred.c: In function fred:
fred.c:4:2: error: stray \342 in program
fred.c:4:2: error: stray \200 in program
fred.c:4:2: error: stray \234 in program
fred.c:4:16: error: expected ) before : token
fred.c:4:16: error: stray \ in program
fred.c:4:16: error: stray \342 in program
fred.c:4:16: error: stray \200 in program
fred.c:4:16: error: stray \235 in program
fred.c:4:16: warning: passing argument 1 of printf from incompatible pointer type [enabled by default]
/usr/include/stdio.h:363:12: note: expected const char * __restrict__ but argument is of type void (*)(int)
fred.c:4:16: warning: format not a string literal and no format arguments [-Wformat-security]