C Question > Missing identifier

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmcnamarw
    New Member
    • Dec 2007
    • 2

    C Question > Missing identifier

    I keep getting:
    lr_strings.h (29): missing identifier
    lr_strings.h (59): missing identifier
    lr_strings.h (59): syntax error; found `0' expecting `;'
    lr_strings.h (59): unrecognized declaration
    lr_strings.h (59): unrecognized declaration
    lr_strings.h (60): unrecognized declaration
    lr_strings.h (60): warning: empty declaration
    c:\\documents and settings\\hmu7s 5t\\local settings\\temp\ \noname59\\\\co mbined_noname59 .c (5): 6 errors, not writing pre_cci.ci
    Here is where it is from:

    lr_strings.h

    const char* 0=
    "";

    Any thoughts - Thanks in advance!
  • oler1s
    Recognized Expert Contributor
    • Aug 2007
    • 671

    #2
    0 is not a name. It's a number. You can't start variable names with a number, but it's outright nonsensical to have a number as a name...

    I'm betting you also have a general phobia of making variable names anything longer than...1 letter?

    Comment

    • jmcnamarw
      New Member
      • Dec 2007
      • 2

      #3
      No phobias, found solution in another part of the code. Tks...

      Comment

      • sridhar
        New Member
        • Dec 2011
        • 1

        #4
        hi what was the solution

        Comment

        • duynk
          New Member
          • Aug 2014
          • 1

          #5
          Hi,

          My solution is:
          const char* a0=
          "";

          Comment

          Working...