How to compile a c file into out file?

2008-07-24 Thread EdwardKing
I compile a c file,like follows: $gcc other1.obj other2.obj myfile.c Then it create a a.out file.my question is how to create a file named myfile.out instead of name a.out? -- Confidentiality Notice:

Re: How to compile a c file into out file?

2008-07-24 Thread Paul Procacci
EdwardKing wrote: I compile a c file,like follows: $gcc other1.obj other2.obj myfile.c Then it create a a.out file.my question is how to create a file named myfile.out instead of name a.out? --

Re: How to compile a c file into out file?

2008-07-24 Thread Martin Tournoij
On Thu, Jul 24, 2008 at 02:15:25PM +0800, EdwardKing wrote: I compile a c file,like follows: $gcc other1.obj other2.obj myfile.c Then it create a a.out file.my question is how to create a file named myfile.out instead of name a.out? Use the -o parameter, ie: % cc -o file file.c -- Martin

Re: How to compile a c file into out file?

2008-07-24 Thread Wojciech Puchar
gcc -o myfile man cc :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]