Thread: C programming in Ubuntu
hi,
want compile , run simple hello world prgm.
i compiled usingcode:#include <stdio.h> int main(int argc, char **argv){ printf("hello world\n"); return 0; }
but when try run usingcode:gcc -o hello hello.c
i errorcode:. hellowhat missing?? plz help.code:bash: .: hello: cannot execute binary file
on solaris machines @ uni, run program don't have start '.'. ie: run hello, type hello. how u work in ubuntu?
thnx,
ahh figured out. need typerun it.code:./hello
still, in solaris need type program name run. ideas how in ubuntu?
thnx
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Packaging and Compiling Programs C programming in Ubuntu
Ubuntu
Comments
Post a Comment