Unresolved external 'symbol' referenced from 'module'
Go Up to C++ Linker Error and Warning Messages
The named symbol is referenced in the given module but is not defined anywhere in the set of object files and libraries included in the link. Check to make sure the symbol is spelled correctly.
You will typically see this error from the linker for C or C++ symbols if any of the following occur:
- You did not properly match a symbol’s declarations of __pascal and __cdecl types in different source files.
- You omitted the name of an object file that your program needs. You need to manually add all required packages to the Requires list.
- You did not link in the emulation library.
- You might have a case mismatch between two symbols.
If you are linking C++ code with C modules, you might have forgotten to wrap C external declarations in extern “C”.
If you created a C++ console application with no framework attached, and then attempted to use a Delphi RTL function, you can remedy this error by going to Project > Options > C++ Linker and enabling the Link with the Delphi Runtime Library option.