This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
output to a directory which doesn't exit yet
- From: xuantl <xuantl at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 25 Jul 2006 19:28:09 +0800
- Subject: output to a directory which doesn't exit yet
"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 ?