public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++ compiler options for code spanning multiple lines
@ 2006-01-29 15:54 Purnendu Ghosh
  0 siblings, 0 replies; 2+ messages in thread
From: Purnendu Ghosh @ 2006-01-29 15:54 UTC (permalink / raw)
  To: gcc-help

hi ,
 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.Currently 
i am not using it, but the code compiles except for one instance , where if 
i put "\" there is a successfull compilation.

The same code without "\" compiles successfully under Rational Rose 
Realtime(build for solaris) which uses g++.

Thanks In Advance
Purnendu Ghosh. 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: g++ compiler options for code spanning multiple lines
       [not found] <001901c62493$5dc26050$0200a8c0@puru>
@ 2006-02-03  9:39 ` Purnendu
  0 siblings, 0 replies; 2+ messages in thread
From: Purnendu @ 2006-02-03  9:39 UTC (permalink / raw)
  To: gcc-help

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 <purnendu@gmail.com> 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.Currently i am not using it, but the code compiles except for  one instance , where if i put "\" there is a successfull  compilation.
>
> The same code without "\" compiles successfully  under Rational Rose Realtime(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
-----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-03  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-29 15:54 g++ compiler options for code spanning multiple lines Purnendu Ghosh
     [not found] <001901c62493$5dc26050$0200a8c0@puru>
2006-02-03  9:39 ` Purnendu

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).