title: Unresolved External Symbol Errors switching from build library to exe or dll
body: <p>I am building an application as a library, but to make sure I can get the output that I'd like, I switched it over to produce an exe.  As soon as I did, I got several errors about unresolved external symbols.</p>
  
  <p>At first I thought that I didn't have a path set to the 3rd party library that I was referencing, so I added the folder to my path variable and even added it to my include, references, and source files, just to make sure I had all the paths.</p>
  
  <p>I still get the error:</p>
  
  <blockquote>
    <p>error LNK2019: unresolved external
    symbol "__declspec(dllimport) public:
    static void 
        __cdecl xercesc_2_8::XMLPlatformUtils::Initialize(char
    const * const,char const * 
    const,class xercesc_2_8::PanicHandler
    * const,class xercesc_2_8::MemoryManager *
    const,bool)"
    (__imp_?Initialize@XMLPlatformUtils@xercesc_2_8@@SAXQBD0QAVPanicHandler@2@QAVMemoryManager@2@_N@Z)
    referenced in function "void __cdecl
    xsd::cxx::xml::initialize(void)"
    (?initialize@xml@cxx@xsd@@YAXXZ)</p>
  </blockquote>
  
  <p>The reason that I'm asking it here is because in Visual Studio, when I built it as a library, I didn't get these errors, but as a dll and exe, I do.</p>
  
  <p>Anybody have any thoughts?</p>