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:
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?
--
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
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]