Ok it compiled good but the out file, which is new to me used to exe, won't even start.
Printable View
Ok it compiled good but the out file, which is new to me used to exe, won't even start.
Try running it asCode:./a.out
Also, you can name the executable anything you want by using the -o option:
Code:gcc -o myprog.exe myprog.c
But it is highly uncustomary for Linux executables to have an extension.
Of course, this can be done easier:Code:gcc -o myprog myprog.c
Code:make myprog
You should also check out the GNU docs:
www.delorie.com/gnu/docs/glibc/libc_toc.html
GNU make glibc and gcc (which all linux systems and distros use). These are quite readable and informative. I think they also address some of your question re: how POSIX relates to "C", etc.
Good luck.
True enough! Just thought it might shield him from the "horrors" of Linux ;)
You know, I've been developing various *nix flavors for 13 years, and I did not know that. And a Google shows that if I set the CFLAGS environment variable, I can default to use -g -Wall. Thanks :)