delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <19990614205353.25590.rocketmail@web135.yahoomail.com> |
Date: | Mon, 14 Jun 1999 13:53:53 -0700 (PDT) |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Reply-To: | earnie_boyd AT yahoo DOT com |
Subject: | Re: How to use g++ when paths contain spaces? |
To: | Pontus Lidman <pontus AT mathcore DOT com>, cygwin AT sourceware DOT cygnus DOT com |
MIME-Version: | 1.0 |
--- Pontus Lidman <pontus AT mathcore DOT com> wrote: > Hello, > > I can't seem to get my command lines or makefiles right when the path to > my include directories contain spaces. > > The two main cases are: > > g++ file.cc -I"include dir" > [usage message for cpp] > cpp.exe: too many arguments > > or > > g++ file.cc -Iinclude\ dir > g++: dir: No such file or directory > > I guess quotes are the only way to use spaces in arguments on the Windows > NT command line. Is there any workaround that will let me use the full > path names including spaces? I really don't want to use the short 8+3 > names as that would mean rewriting big chunks of my application. Character quoting using the DOS shell uses the ^ character. If you execute your commands in the bash shell the you can use the \ character. I as a manager wouldn't ever allow a space in a directory or file name. It causes too many headaches. The FAQ also warns of the dangers of the space in file names. I suggest that you modify the spaces to _ or -. Or in the case of "include dir" change it to "include". === YAWIA, Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com> Newbies, please visit <http://www.freeyellow.com/members5/gw32/index.html> _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |