www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/10/10:03:14

Xref: news2.mv.net comp.os.msdos.djgpp:937
From: "Gordon L. Scott" <Gordon AT apis DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What the??
Date: Mon, 29 Jan 96 09:45:37 GMT
Lines: 23
Message-ID: <822908737.snews.post.Gordon@apis.demon.co.uk>
References: <822863893snz AT trenham DOT demon DOT co DOT uk> <310BFB89 DOT 5F7E8E74 AT alcyone DOT com>
Reply-To: Gordon Scott <Gordon AT apis DOT demon DOT co DOT uk>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <310BFB89 DOT 5F7E8E74 AT alcyone DOT com>
           max AT alcyone DOT com "Erik Max Francis" writes:

> This is because the backslash means special things in a C  string.
> You need to escape the strings, as in:
> 
>     #include "c:\\djgpp\\lang\\cxx\iostream.h"

Right.   FWIW,  whilst  some   applications   demand   backslashes
(including  the  user-interface  command.com), raw DOS will accept
either forward or backward slashes, as will most applications that
don't actually check or reject forward slashes.

DJGPP, and most other C compilers, accept  (prefer?)  the  non-dos
convention of forward slashes.

Regards,
-- 
Gordon Scott          Gordon AT apis DOT demon DOT co DOT uk   Compuserve 100332,3310
                      Gordon AT multitone DOT co DOT uk
Basingstoke Beekeeper Beekeeper AT apis DOT demon DOT co DOT uk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019