Author Topic: Chilkat and Qt - linker errors. Help!  (Read 698 times)

qplace

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Chilkat and Qt - linker errors. Help!
« on: November 29, 2017, 12:09:27 AM »
I am a registered user of Chilkat version chilkat-9.5.0-x86-vc12

When I am using it under Visual Studio everything works as expected. I am porting the project to Qt and I am having the problem with building Qt console app with Chilkat. I managed to get rid of all linker errors except one:

ChilkatDbg.lib(ThreadPool.obj):-1: error: LNK2019: unresolved external symbol _fprintf referenced in function __catch$?createNewObject@_ckThreadPool@@CAPAV1@AAVLogBase@@@Z$0

and
ChilkatDbg.lib(LogBase.obj):-1: error: LNK2001: unresolved external symbol _fprintf

My  libs section in pro file is:

LIBS += c:/Libraries/Chilkat/LIBS/ChilkatDbg.lib  \
c:/Libraries/Chilkat/LIBS/ChilkatDbgDll.lib \
-lcrypt32 \
-lws2_32 \
-ldnsapi \
-ladvapi32 \
-lrpcrt4 \
-lwininet

Any help/advise will be appreciated. Thanks!


Chilkat

  • Administrator
  • Full Member
  • *****
  • Posts: 103
  • Karma: +6/-0
    • View Profile
Re: Chilkat and Qt - linker errors. Help!
« Reply #1 on: November 29, 2017, 08:39:22 AM »
Try adding the following library to the linker input files:

Code: [Select]
legacy_stdio_definitions.lib

qplace

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Chilkat and Qt - linker errors. Help!
« Reply #2 on: November 29, 2017, 10:31:34 AM »
That did it! Many thanks!