> then I do: gcc main.c -omain One normally places the executable file before the source files, but I guess that works too :).
i.e. gcc -O -o main main.c > But when I start it, I get: bash: main: command not found > > A chmod 777 main isn't also working. Do I have (ELF???) library > problems? If you chmod 777 you make that binary executable by everyone on your system. Not a good idea. Also others could delete or change it, depending on the permissions of the directory it was in. But the problem is that under normal usage, your current directory is not automatically searched. The preferable solution is to execute it like: # ./main
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com