From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31371 invoked by alias); 3 Feb 2006 09:39:45 -0000 Received: (qmail 31362 invoked by uid 22791); 3 Feb 2006 09:39:44 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.203) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 03 Feb 2006 09:39:42 +0000 Received: by zproxy.gmail.com with SMTP id x7so589854nzc for ; Fri, 03 Feb 2006 01:39:40 -0800 (PST) Received: by 10.65.177.9 with SMTP id e9mr1218146qbp; Fri, 03 Feb 2006 01:39:40 -0800 (PST) Received: by 10.64.53.10 with HTTP; Fri, 3 Feb 2006 01:39:40 -0800 (PST) Message-ID: <4ca029ac0602030139x6e8e5514r89b29ff2501c8afd@mail.gmail.com> Date: Fri, 03 Feb 2006 09:39:00 -0000 From: Purnendu To: gcc-help@gcc.gnu.org Subject: Re: g++ compiler options for code spanning multiple lines In-Reply-To: <001901c62493$5dc26050$0200a8c0@puru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <001901c62493$5dc26050$0200a8c0@puru> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg00029.txt.bz2 FYI: I got an answer. Compilers used by me : in Rose RT: bash-3.00$ /vobs/gnu/gcc/SunOS-5.8/bin/g++ --version 2.95.3 VxWorks: bash-3.00$ /vobs/ubtssw_tornado/host/gnu/3.3/sun4-solaris2/bin/c++ppc --version c++ppc (GCC) 3.3-e500 20030421 (Wind River) Older gcc version , gives no error on compilation , if there is no "\" or a quote ("). The newer one , explicitly requires these for a successful compilation. For solaris build i was using the older gcc:( On 1/29/06, Purnendu Ghosh wrote: > > I am compiling C++ code for VxWorks. Many parts of my code span mulitple= lines. > Do i need to specifically add an "\" for continuing the next line.Curren= tly i am not using it, but the code compiles except for one instance , whe= re if i put "\" there is a successfull compilation. > > The same code without "\" compiles successfully under Rational Rose Real= time(build for solaris) which uses g++. > > Thanks In Advance. > Purnendu Ghosh > FLEXTRONICS SOFTWARE SYSTEMS > #18/1,Outer Ring Road, > Panathur Post, > Bangalore 560 087,INDIA > > +91-080-5106 7837 Phone > +91-080-5126 6501 Fax > +91-9886892863 Mobile > --------------------------------------------------- > If you can DREAM it you can DO it > --------------------------------------------------- > -- with regards, purnendu ghosh ----------------------------------------------------------------------- If you can D.R.E.A.M it you can D.O it -----------------------------------------------------------------------