Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure what your level of expertise is, but here are the basics. </p> <p>Below is a linker error from VS 2005 - yes, it's a giant mess if you're not familiar with it.</p> <pre><code>ByteComparator.obj : error LNK2019: unresolved external symbol "int __cdecl does_not_exist(void)" (?does_not_exist@@YAHXZ) referenced in function "void __cdecl TextScan(struct FileTextStats &amp;,char const *,char const *,bool,bool,__int64)" (?TextScan@@YAXAAUFileTextStats@@PBD1_N2_J@Z) </code></pre> <p>There are a couple of points to focus on: </p> <ul> <li>"ByteComparator.obj" - Look for a ByteComparator.cpp file, this is the source of the linker problem</li> <li>"int __cdecl does_not_exist(void)" - This is the symbol it couldn't find, in this case a function named does_not_exist()</li> </ul> <p>At this point, in many cases the fastest way to resolution is to search the code base for this function and find where the implementation is. Once you know where the function is implemented you just have to make sure the two places get linked together.</p> <p>If you're using VS2005, you would use the "Project Dependencies..." right-click menu. If you're using gcc, you would look in your makefiles for the executable generation step (gcc called with a bunch of .o files) and add the missing .o file.</p> <hr> <p>In a second scenario, you may be missing an "external" dependency, which you don't have code for. The Win32 libraries are often times implemented in static libraries that you have to link to. In this case, go to <a href="http://msdn.microsoft.com/en-us/default.aspx" rel="noreferrer">MSDN</a> or <a href="http://www.google.com/microsoft" rel="noreferrer">"Microsoft Google"</a> and search for the API. At the bottom of the API description the library name is given. Add this to your project properties "Configuration Properties->Linker->Input->Additional Dependencies" list. For example, the function timeGetTime()'s <a href="http://msdn.microsoft.com/en-us/library/ms713418(VS.85).aspx" rel="noreferrer">page on MSDN</a> tells you to use Winmm.lib at the bottom of the page.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload