Print Page | Close Window

LIB Edition... unresolved externals

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1747
Printed Date: 12 May 25 at 11:21PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: LIB Edition... unresolved externals
Posted By: D.Bugger
Subject: LIB Edition... unresolved externals
Date 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


 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk