Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of pdfium_test failed with shared pdfium library on Windows Win32 with Visual Studio 2010 #127

Open
GoogleCodeExporter opened this issue Apr 10, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant