在c++代码中如何使用visualdl
Created by: QinZiwen
请问,在C++代码中如何找visualdl的头文件和怎么链接visualdl的库。我写的cmakelists如下:
cmake_minimum_required(VERSION 3.2)
project(test_vdl)
include_directories(../)
add_executable(test_vdl test_vdl.cpp)
target_link_libraries(test_vdl ../build/visualdl/logic/core.so)
VisualDL/test/../visualdl/utils/logging.h:85:8: error: function definition does not declare parameters
bool has_throw_{false};
VisualDL/test/../visualdl/utils/logging.h:78:10: error: use of undeclared identifier 'has_throw_'
if (!has_throw_) {
VisualDL/test/../visualdl/utils/logging.h:125:76: error: expected member name or ';' after declaration specifiers
NotImplementedException() : std::logic_error{"Function not implemented"} {}
VisualDL/test/../visualdl/utils/logging.h:125:47: error: expected '('
NotImplementedException() : std::logic_error{"Function not implemented"} {}