DS
Size: a a a
DS
AU
C
AU
SF
SF
ИФ
VS
target_compile_definitions?ИФ
AU
user@debian:~/.conan/data/grpc/1.37.1/_/_/package/db6304dd45347af9f58399ddc30fb87e82228a78$ grep -r "ChannelzService"
include/grpcpp/ext/channelz_service_plugin.h:void InitChannelzService();
Binary file lib/libgrpcpp_channelz.a matches
user@debian:~/.conan/data/grpc/1.37.1/_/_/package/db6304dd45347af9f58399ddc30fb87e82228a78$ find -name "channelz_service.h"
user@debian:~/.conan/data/grpc/1.37.1/_/_/package/db6304dd45347af9f58399ddc30fb87e82228a78$
c|
[ 50%] Linking CXX executable testbot
Undefined symbols for architecture x86_64:
"_OPENSSL_sk_num", referenced from:
sk_GENERAL_NAME_num(stack_st_GENERAL_NAME const*) in libTgBot.a(BoostHttpOnlySslClient.cpp.o)
"_OPENSSL_sk_value", referenced from:
sk_GENERAL_NAME_value(stack_st_GENERAL_NAME const*, int) in libTgBot.a(BoostHttpOnlySslClient.cpp.o)
"_SSL_CTX_get_default_passwd_cb_userdata", referenced from:
boost::asio::ssl::context::~context() in libTgBot.a(BoostHttpOnlySslClient.cpp.o)
"_SSL_CTX_set_options", referenced from:
boost::asio::ssl::context::set_options(long, boost::system::error_code&) in libTgBot.a(BoostHttpOnlySslClient.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [CMakeFiles/testbot.dir/build.make:108: testbot] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:95: CMakeFiles/testbot.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:102: CMakeFiles/testbot.dir/rule] Error 2
gmake: *** [Makefile:137: testbot] Error 2
c|
cmake_minimum_required(VERSION 2.8.4)
project(testbot)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
set(Boost_USE_MULTITHREADED ON)
find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Boost COMPONENTS system REQUIRED)
find_package(CURL)
include_directories(/usr/local/include ${OPENSSL_INCLUDE_DIR} ${Boost_INCLUDE_DIR})
if (CURL_FOUND)
include_directories(${CURL_INCLUDE_DIRS})
add_definitions(-DHAVE_CURL)
endif()
add_executable(testbot main.cpp)
target_link_libraries(testbot /usr/local/lib/libTgBot.a ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES} ${CURL_LIBRARIES})
ГH
c|
❯ cmake .
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/FindBoost.cmake:1187 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/FindBoost.cmake:1311 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/FindBoost.cmake:1919 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:9 (find_package)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/valery/CLionProjects/cpp-banan
c|
ГH
АШ
c|
АШ