* output to a directory which doesn't exit yet
@ 2006-07-26 4:25 xuantl
2006-07-26 6:22 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: xuantl @ 2006-07-26 4:25 UTC (permalink / raw)
To: gcc-help
"gcc -c -o ./objs/foo.o foo.c"
The above command will put foo.o to the directory ./objs. But if ./objs
doesn't exist, gcc will prompt error. How to make gcc to create the
output directory automatically ?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: output to a directory which doesn't exit yet
2006-07-26 4:25 output to a directory which doesn't exit yet xuantl
@ 2006-07-26 6:22 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2006-07-26 6:22 UTC (permalink / raw)
To: xuantl; +Cc: gcc-help
xuantl <xuantl@gmail.com> writes:
> "gcc -c -o ./objs/foo.o foo.c"
> The above command will put foo.o to the directory ./objs. But if
> ./objs doesn't exist, gcc will prompt error. How to make gcc to create
> the output directory automatically ?
There is no way to make gcc create the directory.
Sorry.
Of course it will work to do
mkdir -p ./objs; gcc -c -o ./objs/foo.o foo.c
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-26 6:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-26 4:25 output to a directory which doesn't exit yet xuantl
2006-07-26 6:22 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).