invoker__qq

Results 14 comments of invoker__qq

请教一个问题 : 我现在用输出到文件的方式查看log,有什么其他的方式直接查看 std::cout 输出? @xfangfang

~~我本地编译desktop 版本的时候libcurl提示需要使用 -fPIC 参数编译版本,你的也是这样吗 @xfangfang ,我自己编译一下curl吧~~ ``` /usr/bin/ld: /usr/local/lib/libcurl.a(mprintf.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/lib/libcurl.a(multi.c.o): relocation R_X86_64_32 against...

> ~我本地编译desktop 版本的时候libcurl提示需要使用 -fPIC 参数编译版本,你的也是这样吗 @xfangfang ,我自己编译一下curl吧~ > > ``` > /usr/bin/ld: /usr/local/lib/libcurl.a(mprintf.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC >...

~~linux ubuntu 20.04 编译Desktop时遇到第二个问题~~, 已解决 ``` /usr/bin/ld: _deps/cpr-build/cpr/libcpr.so.1.9.1: undefined reference to symbol 'pthread_join@@GLIBC_2.2.5' /usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line ``` 解决方案如下: https://stackoverflow.com/questions/34143265/undefined-reference-to-symbol-pthread-createglibc-2-2-5 需要在CMakeLists.txt中添加如下命令 ``` set(CMAKE_THREAD_LIBS_INIT "-lpthread")...