answersLogoWhite

0

What is an undefined reference error?

Updated: 8/16/2019
User Avatar

Wiki User

16y ago

Best Answer

Undefined references occur in programs when a program tries to access a variable that has not previously been declared.

Picture this scenario:

You have 2 Oranges and 3 apples

Add the number of oranges to the number of ilikons

Any sensible person would simply ask: what are "ilikons"?

A program will not however ask that. It will just stop and report undefined reference to ilikons (at best).

A related error is the non-initialized vriable, which in some languages comes up as undefined variables as well.

You have 2 oranges and some apples

Add the number of oranges to the number of apples

We have declared the apples - but we haven't stated how many there were, and adding that unknown number to anything still mkaes no practical sense.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an undefined reference error?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is title is undefined?

Script error in modzilla


What do you mean by undefined symbol in turbo c?

An undefined symbol is where you make a reference to a symbol, but you have not yet declared and defined it.


What is 1337 divide by 0?

Undefined: You cannot divide by zero


What is a formula that depends on its own value?

A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.A circular reference. It will cause an error.


What are reasons for the occurrence of linker error?

Most commons are: undefined symbol and symbol defined more than once.


What does undefined mean on web page?

Generally, "undefined" is an indication that the coding behind the page is attempting to use a variable that isn't initialized. In JavaScript, it can also be an error message that signifies that the script is trying to access a thing that isn't present.


Undefined index in PHP?

Please focus on the line number before the line of the error. There must be an array, with some issues with the index.


What is undefined divided by undefined?

Mathematical operations involving undefined are not permitted. So the answer is undefined.


What is 5610 divided by 0?

Undefined: You cannot divide by zero


7 divided by 0?

Undefined: You cannot divide by zero


How much do wrong prited quarters cost?

It depends on the type of error. Look for an inline reference to error coins.


Code for level 25 on funbrain arcade?

The Code Is Undefined The Code Is Undefined The Code Is Undefined The Code Is Undefined