Chilkat Forum

Programming Languages / Environments => C / C++ => Topic started by: qplace on November 29, 2017, 12:09:27 AM

Title: Chilkat and Qt - linker errors. Help!
Post by: qplace 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!

Title: Re: Chilkat and Qt - linker errors. Help!
Post by: Chilkat on November 29, 2017, 08:39:22 AM
Try adding the following library to the linker input files:

Code: [Select]
legacy_stdio_definitions.lib
Title: Re: Chilkat and Qt - linker errors. Help!
Post by: qplace on November 29, 2017, 10:31:34 AM
That did it! Many thanks!