[lkml]   [1999]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRE: RH6.0 C compiler doesn't recognize "\"

    > :set ff=unix
    > :w

    Great, the set command works!

    I do feel the problem is dos file format xfer issue. Under Soalris or
    Unixware enviornment, if the ^M is at the end of line, it will shows up. I
    have been dealing those under Unixware and Solaris a lot. However, all my
    problem lines under Linux does not show anything after "\". Even I replaced
    the rest of line after last character with a "\", it still causing problem.
    That confused me. Only similar experience I had was doing Banyan driver
    where the compiler gave same headache to me.

    Anyway, problem resolved and many thanks to you guys!!!


    -----Original Message-----
    From: Stuart MacDonald []
    Sent: Tuesday, September 07, 1999 12:52 PM
    To: WANG,YIDING (HP-SanJose,ex1)
    Subject: Re: RH6.0 C compiler doesn't recognize "\"

    From: WANG,YIDING (HP-SanJose,ex1) <>
    > The C compiler in RH6.0 (Linux 2.2.5-15) doesn't like back slash "\" in
    > header file for the continued lines. Does anyone know how to make this
    > compiler take this standard "\" as acceptible symbol for continued lines?

    Look carefully at the bottom line of your vi screen when the file first
    It probably says [dos format]. Use
    :set ff=unix
    to convert to unix format. The difference? Dos format ends a line with
    where unix format just ends

    The extra carriage return confuses the compiler; the \ needs to be followed
    by a newline to be acceptable as a line-continuation marker.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:53    [W:0.019 / U:2.816 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site