You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Change from static_library into shared_library in pdfium.gyp
2. Add each library dependency into link_settings : libraries and
AdditionalLibraryDirectories to '$(OutDir)/lib/'
3. Open build/all.sln
4. Select Release type, Win32 architecture
5. Compile pdfium target
6. Compile pdfium_test target
What is the expected output? What do you see instead?
>pdfium_test.obj : error LNK2019: unresolved external symbol _FPDF_RenderPage
referenced in function "void __cdecl WriteEmf(void *,char const *,int)"
(?WriteEmf@@YAXPAXPBDH@Z)
>pdfium_test.obj : error LNK2019: unresolved external symbol
_FPDF_GetPageHeight referenced in function "void __cdecl WriteEmf(void *,char
const *,int)" (?WriteEmf@@YAXPAXPBDH@Z)
>pdfium_test.obj : error LNK2019: unresolved external symbol _FPDF_GetPageWidth
referenced in function "void __cdecl WriteEmf(void *,char const *,int)"
(?WriteEmf@@YAXPAXPBDH@Z)
>pdfium_test.obj : error LNK2019: unresolved external symbol _FPDFAvail_Destroy
referenced in function "void __cdecl RenderPdf(class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> const &,char const *,unsigned int,struct Options const &)"
(?RenderPdf@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@
PBDIABUOptions@@@Z)
>pdfium_test.obj : error LNK2019: unresolved external symbol
_FPDF_DestroyLibrary referenced in function _main
>pdfium_test.obj : error LNK2019: unresolved external symbol
_FSDK_SetUnSpObjProcessHandler referenced in function _main
>pdfium_test.obj : error LNK2019: unresolved external symbol _FPDF_InitLibrary
referenced in function _main
>..\build\Release\pdfium_test.exe : fatal error LNK1120: 28 unresolved externals
instead of compiled pdfium_test.exe binary file
What version of the product are you using? On what operating system?
Visual Studio 2010
Windows 7 x64
Please provide any additional information below.
After successful compilation of shared library pdfium.dll there is pdfium.lib
file.
I explored pdfium.lib and it has every symbol, which is required, with correct
machine X86. Compilation in x64 architecture is working without problem.
Original issue reported on code.google.com by [email protected] on 3 Mar 2015 at 1:56
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 3 Mar 2015 at 1:56The text was updated successfully, but these errors were encountered: