What does this error message mean?: undefined reference to_Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ab12
    New Member
    • Aug 2008
    • 17

    What does this error message mean?: undefined reference to_Error

    I'm trying to compile a program in C and i get this error i've never seen before. When i click on the error it just highlights the last brace of my program. the compiler i'm using is lcc-win32
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    When you get a compiler error, it's just at the place where the compiler knew it was in trouble. The actual error could be at an earlier point in the code. Look upwards and see if you can see anything.

    It looks like the symbol to_Error is used but node defined or declared.

    Comment

    • gpraghuram
      Recognized Expert Top Contributor
      • Mar 2007
      • 1275

      #3
      First isolate whether its a compilation error or a linking error.
      First check whether you can compile the program.
      Then try to link and see.


      Raghu

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by ab12
        I'm trying to compile a program in C and i get this error i've never seen before. When i click on the error it just highlights the last brace of my program. the compiler i'm using is lcc-win32
        Well, don't search for something that isn't there: that to_Error thing isn't defined.
        The solution is simple: define it somewhere because it is first used. Compiler
        messages are not just there to panic the user, i.e. those messages are supposed
        to be read and understood. And of course your compiler could only issue that
        message after it had read the entire text, it isn't psychic.

        kind regards,

        Jos

        Comment

        • ab12
          New Member
          • Aug 2008
          • 17

          #5
          Originally posted by JosAH
          Well, don't search for something that isn't there: that to_Error thing isn't defined.
          The solution is simple: define it somewhere because it is first used. Compiler
          messages are not just there to panic the user, i.e. those messages are supposed
          to be read and understood. And of course your compiler could only issue that
          message after it had read the entire text, it isn't psychic.

          kind regards,

          Jos
          I don't use "to_Error" anywhere in the program. I've never heard of it. my program is a simple one that just tells you whether your input string is a palindrome or not. how can i just define something when i don't know what it is? My program is pretty straightforward and i haven't tried anything unusual to the other programs i write.

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by ab12
            I don't use "to_Error" anywhere in the program. I've never heard of it. my program is a simple one that just tells you whether your input string is a palindrome or not. how can i just define something when i don't know what it is? My program is pretty straightforward and i haven't tried anything unusual to the other programs i write.
            At least somewhere in the header files it pops up. Your error was probably a
            linker error? Something definitely saw a symbol to_Error and it didn't see its
            definition. Check your manuals or show the relevant code (in the correct code
            tags please). That message didn't pop up for nothing.

            kind regards,

            Jos

            Comment

            Working...