How to compile a c file into out file?
Martin Tournoij
carpetsmoker at rwxrwxrwx.net
Thu Jul 24 06:46:31 UTC 2008
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 Tournoij
carpetsmoker at rwxrwxrwx.net
http://www.daemonforums.org
QOTD:
Captain Penny's Law:
You can fool all of the people some of the time, and some
of the people all of the time, but you Can't Fool Mom.
More information about the freebsd-questions
mailing list