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
What does this error message mean?: undefined reference to_Error
Collapse
X
-
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. -
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.
RaghuComment
-
Originally posted by ab12I'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
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,
JosComment
-
Originally posted by JosAHWell, 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,
JosComment
-
Originally posted by ab12I 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.
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,
JosComment
Comment