jessiebrownjr
October 3rd, 2009, 07:59 PM
This is basic C im attempting to learn.This is the code that Anjuta IDE pops out onto the screen when you make a new file as a template.
#include <stdio.h>
int main()
{
printf(''Goodbye, cruel world!\n'');
return(0);
}
Now that seems like it should compile right? I hit build, and get a slew of errors.
main.c:4:20: error: empty character constant
main.c: In function ‘main’:
main.c:4: error: expected ‘)’ before ‘Goodbye’
main.c:4: error: stray ‘\’ in program
main.c:4:45: error: empty character constant
main.c:4: warning: null argument where non-null required (argument 1)
make: *** [main.o] Error 1I'm lost how I'm supposed to even start learning to program when even the basic code like this the compiler itself gave me to as a template isn't compiling.. what could possibly be wrong?
On another compiler when I tried to run a code that would be assumed to be proper, it would error out as well.
Please help if you can think of anything, this is very frustrating.
#include <stdio.h>
int main()
{
printf(''Goodbye, cruel world!\n'');
return(0);
}
Now that seems like it should compile right? I hit build, and get a slew of errors.
main.c:4:20: error: empty character constant
main.c: In function ‘main’:
main.c:4: error: expected ‘)’ before ‘Goodbye’
main.c:4: error: stray ‘\’ in program
main.c:4:45: error: empty character constant
main.c:4: warning: null argument where non-null required (argument 1)
make: *** [main.o] Error 1I'm lost how I'm supposed to even start learning to program when even the basic code like this the compiler itself gave me to as a template isn't compiling.. what could possibly be wrong?
On another compiler when I tried to run a code that would be assumed to be proper, it would error out as well.
Please help if you can think of anything, this is very frustrating.