You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by 孙权 <su...@gmail.com> on 2019/07/08 04:56:55 UTC

[patch] use zookeeper-client-c has some link problems

Sorry for disturbance!
Description:
use cmake generate zookeeper.sln, build generate

cli.pdb
hashtable.lib
hashtable.pdb
zookeeper.lib
zookeeper.pdb

I write a demo linked “zookeeper.lib” and “hashtable.lib”
occur errors:

4> Creating library D:/A_src/ACenter/build/Debug/testzuv.lib and
object D:/A_src/ACenter/build/Debug/testzuv.exp4>zookeeper.lib(zookeeper.obj)
: error LNK2019: Unresolved external symbol _strtok_r, the symbol is
referenced in function _resolve_hosts4>zookeeper.lib(zk_log.obj) :
error LNK2019: Unresolved external symbol _localtime_r, the symbol is
referenced in function
_time_now4>D:\A_src\ACenter\build\Debug\testzuv.dll : fatal error
LNK1120: 2 external commands

moudle:  zookeeper-client/zookeeper-client-c
version:  release-3.5.5
git commit id : 390fe37e
platform: Windows 10
compile: Visual studio 2017

I fixed it in a simple way and it looks fine.