[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppLinkingError
Mostly, this means that in the header files, you've give the declaration of a function, but nowhere given the function body.
The code below has the function definition commented out, resulting in a linking error.
In C++ Builder the error message will be:
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppLinkingError
(C++) Linking error
An error found during ?linking or run-time.Mostly, this means that in the header files, you've give the declaration of a function, but nowhere given the function body.
The code below has the function definition commented out, resulting in a linking error.
//Declaration of doSomething(); void doSomething(); int main() { doSomething(); return 0; } //Definition of the function //Removing this part returns in a linking error /* //Commented this function out to generate a linker error. void doSomething() { std::cout << "Hello world" << std::endl; }
- include <iostream>
- /
In C++ Builder the error message will be:
[Linker Error] Unresolved external 'doSomething()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\UNIT1.OBJ
Other errors
- C++ compile errors
- C++ linking errors
- C++ runtime errors
- C++ Builder compile errors
- C++ Builder linking errors
- C++ Builder run-time errors
- C++ Builder misc errors
Topic links
- ::, scope operator
- <<, stream out operator
- #include
- const
- cout
- endl
- #include
- iostream
- main
- return
- scope operator, ::
- std
- stream out operator, <<
- vector
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
