title: Creating pdfium dll
body: <p>I am trying to create a dll for <code>pdfium</code> using Visual Studio 2013 (as in <a href="https://stackoverflow.com/questions/30236148/creating-a-dll-in-pdfium">Creating a dll in pdfium</a>) except that when I download <code>pdfium</code> project I set <code>DEPOT_TOOLS_WIN_TOOLCHAIN=0</code>, because now, by default, they use toolchain from depot_tools .</p>
  
  <p>But I still get an error during the build process: </p>
  
  <p><code>error LNK2019: unresolved external symbol _FPDF_BStr_Init referenced in function "public: class CFX_WideString __thiscall CPDFDoc_Environment::FFI_PostRequestURL(wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *)" (?FFI_PostRequestURL@CPDFDoc_Environment@@QAE?AVCFX_WideString@@PB_W0000@Z)    ..\pdfium\fpdfxfa.lib(fpdfxfa_app.obj)  pdfium</code></p>
  
  <p>and similar about <code>_FPDF_BStr_Clear</code></p>
  
  <p><code>error LNK2019: unresolved external symbol _FPDF_BStr_Clear referenced in function "public: class CFX_WideString __thiscall CPDFDoc_Environment::FFI_PostRequestURL( ...</code></p>
  
  <p>I through, that it may be problem with xfa, so I tried to build pdfium without it. I removed <code>PDF_ENABLE_XFA</code> from preprocessor definitions of all projects in this solution, but then i found that fxcodec and fxcrt dont build without that definition.
  When I leave that definitions for that projects i can successfully build pdfium project, but when i use it in my app, it fails.</p>
  
  <p>Then I tried to do it in different order and got dll, but without using of FPDFSDK_EXPORTS definition. When I add it, those errors appear.</p>