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?
>
>
> ----------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s) is intended only for the use of the intended 
> recipient and may be confidential and/or privileged of Neusoft Group Ltd., 
> its subsidiaries and/or its affiliates. If any reader of this communication 
> is not the intended recipient, unauthorized use, forwarding, printing, 
> storing, disclosure or copying is strictly prohibited, and may be unlawful. 
> If you have received this communication in error, please immediately notify 
> the sender by return e-mail, and delete the original message and all copies 
> from your system. Thank you. 
> -----------------------------------------------------------------------------------------------
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>   

use the -o flag to specify a filename of your liking.

gcc -o somefile somefile.c somefile.o anotherfile.o ... ... ...

~Paul

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to