Hi could someone please have a look at the following steps to see if there is something I'm missing.
1/ I have d/lded xcode (current) and installed command line tools.
2/ for some reason edit is not opening in my terminal window.
ie I type "gedit hello.c"
output:- bash:gedit: command not found
but I just use pico and it seams to work i.e.
"pico hello.c"
and it opens a pico editing window.
secondly the compiler does not seem to work in terminal.
ie/
i create a new file "mkdir hello.c"
"cd hello.c"
now i am in hello.c
next step
"pico hello.c"
and i type this simple code
#include <stdio.h>
int main(int argc, char * argv[]){
printf("Hello World!\n");
printf("Goodbye World!\n");
return 0;
}
now I save by
^o
and save file "hello.c"
now back to terminal still in file hello.c
"gcc -Wall -Werror -O -o hello hello.c"
output:
i686-apple-darwin11-llvm-gcc-4.2: hello.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files"
???
This is really annoying me I feel I have tried everything
please please help. Thanks
1/ I have d/lded xcode (current) and installed command line tools.
2/ for some reason edit is not opening in my terminal window.
ie I type "gedit hello.c"
output:- bash:gedit: command not found
but I just use pico and it seams to work i.e.
"pico hello.c"
and it opens a pico editing window.
secondly the compiler does not seem to work in terminal.
ie/
i create a new file "mkdir hello.c"
"cd hello.c"
now i am in hello.c
next step
"pico hello.c"
and i type this simple code
#include <stdio.h>
int main(int argc, char * argv[]){
printf("Hello World!\n");
printf("Goodbye World!\n");
return 0;
}
now I save by
^o
and save file "hello.c"
now back to terminal still in file hello.c
"gcc -Wall -Werror -O -o hello hello.c"
output:
i686-apple-darwin11-llvm-gcc-4.2: hello.c: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files"
???
This is really annoying me I feel I have tried everything
please please help. Thanks