answersLogoWhite

0


Best Answer

Linker errors are many and varied. Without knowing the error it is impossible to say how you solve it.

Most linker errors relate to undefined symbols. For instance, if you declare a function but do not implement it, the function is undefined. This can also happen when you include a function library header but do not link to the function library containing the definitions. The compiler uses the header declarations to ensure all calls to the functions are valid even if the definition hasn't yet been compiled. It is the linker's job to ensure all declarations are defined. The only exception is templates which must be defined before they are used. This is why all template definitions are placed in the header alongside the declarations.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

This message from the linker has nothing to do with the C language. You simply left something out from the linkage. (Or haven't written it at all.)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you solve undefined references error in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you solve error c plus plus ntvdm CPU illegal?

Use the debugger to locate the error.


How to solve bgi error Graphics not initialised in C?

to install the graphics driver


How do you solve this error under-fined symbol 'cin'in c plus plus?

#include <iostream> using namespace std;


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 the standard form for undefined slope?

x = c where c is a constant.


What can you do to an int that you cannot do to a string in C plus plus?

You can perform arithmetic with it. int x {42}; x *= 2; // ok std::string s {"Hello"}; s *= 2; // error: std::string::operator*= (int) is undefined


Which category of c references are always aliases?

What 'references' and what 'aliases'? Try to rephrase your question.


How do you solve a equals b plus c plus d solve for c?

If: a = b+c+d Then: c = a-b-d


How do you solve C equals 43.96 cm?

There is nothing to solve. C = 43.96 cm!


Formula of radious given curve length and chord length?

R = radius c = chord length s = curve length c = 2Rsin(s/2R) you can solve for radius by trial and error as this is a transcendental equation


What if your windows XP SP2 is not genuine and you need ie 7 to run on this system can you get such a copy how is it possible to cross the genuine validation process to install it without buying a new?

Reboot the PC in safemode... You can solve this error by deleting the exe file having path C:\Windows\System32\wgatray.exe. Reboot the PC in safemode... You can solve this error by deleting the exe file having path C:\Windows\System32\wgatray.exe.


How do you spell references?

The word "references" is spelled R-E-F-E-R-E-N-C-E-S.