Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
LIB Edition... unresolved externals |
Post Reply ![]() |
Author | |
D.Bugger ![]() Beginner ![]() Joined: 24 Feb 11 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 24 Feb 11 at 12:21PM |
I want to integrate QuickPDF as LIB Edition into my App. To get familiar with QuickPDF I wanted to start with the HelloWorld sample, but this uses the DLL Edition. So I made some changes to the Project: - change QuickPDFDLL0721.h to QuickPDFLIB0723.h - add QuickPDFLIB0723.lib and crypt32.lib as Libraries - remove QuickPDFDLL0721.cpp - added the 3 res-files to the project - and in the OnBnClickedHelloWorld I threw out the original code and inserted the code from the GettingStarted documentation: >>> QUICKPDFLIB0723_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL); int InstanceID = QuickPDFCreateLibrary(); if (QuickPDFUnlockKey(InstanceID, "XXXsamplelicenceXXX") == 1) { QuickPDFDrawText(InstanceID, 100, 500, "Hello world"); QuickPDFSaveToFile(InstanceID, "C:\\out\\HelloFromLIB.pdf"); } QuickPDFReleaseLibrary(InstanceID); QUICKPDFLIB0723_DllMain(GetModuleHandle(NULL), DLL_PROCESS_DETACH, NULL); <<< When I produce this project (with "Visual Studio 2010", Debug mode) I get several warnings and "unresolved externals": >>> Warning 1 warning LNK4049: locally defined symbol _strlen imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 2 warning LNK4049: locally defined symbol _vsprintf imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 3 warning LNK4049: locally defined symbol _printf imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 4 warning LNK4049: locally defined symbol _ceil imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 5 warning LNK4049: locally defined symbol _floor imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 6 warning LNK4049: locally defined symbol _memcpy imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 7 warning LNK4049: locally defined symbol _memset imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 8 warning LNK4049: locally defined symbol _realloc imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 9 warning LNK4049: locally defined symbol _free imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 10 warning LNK4049: locally defined symbol _calloc imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 11 warning LNK4049: locally defined symbol _malloc imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 12 error LNK2001: unresolved external symbol __imp__strncpy QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 13 error LNK2001: unresolved external symbol __imp___ftol QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 14 error LNK2001: unresolved external symbol __imp__fprintf QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 15 error LNK2001: unresolved external symbol __imp__pow QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition <<< I tried to twiddle around with some libraries (msvcrtd.lib etc.) but I only got the problems to get bigger. Who has a good idea how this problem can be solved?! Thank you in advance |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store