title: error LNK2019: unresolved external symbol referenced in function main
body: <p>I'm using a library to generate multimodal optimization functions using VS2010. I include the header file of the library and tell VS where the library directory is; however, there is no *.lib file that comes with it, just source files and header files, so I can't point VS to "Additional Library Directories".</p>
  
  <p>If I just include the header file and run my code it works fine. If I call any method from that library I get the LNK2019 error: </p>
  
  <blockquote>
    <p>error LNK2019: unresolved external symbol "void __cdecl g_initialize(char *)" (?g_initialize@@YAXPEAD@Z) referenced in function main".</p>
  </blockquote>
  
  <p>I looked around and everyone is saying I should link the library, but I don't have a library file to begin with. What should I do??</p>
  
  <p>Regards, </p>