cpp-tbox
cpp-tbox copied to clipboard
A complete Linux application software development tool library and runtime framework, aim at make C++ development easy.
在编译生成静态库之后,使用CMakelist链接静态库时,必须按顺序链接。才能编译成功,顺序如下: add_executable(test src/main.cpp) target_link_libraries(test ${catkin_LIBRARIES} ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_main.a ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_log.a ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_terminal.a ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_network.a ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_eventx.a ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_event.a ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_util.a ${LIB_DIR_ARCH}/cpp-tbox/lib/libtbox_base.a -lpthread -ldl )
fatal error: tbox/base/defines.h: No such file or directory 44 | #include | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated.
现有函数遇到特殊字符,如 " ' $ 会出现问题。 https://github.com/cpp-main/cpp-tbox/blob/63fc6130364854705429f568b393366f422ce733/modules/util/execute_cmd.h#L25C41-L25C41 ``` ExecuteCmd(const std::vector &args); ```
``` Struct NodeInfo { enum class Type { kDir, //! 目录 kFile, //! 普通文件 kElf, //! 可执行文件 kPipe, //! 管道文件 ... }; Type type; uint64_t create_time; uint64_t modify_time; }; bool...
Loop::runLoop() 与 Loop::exitLoop() 是否可以反复调用呢?
https://github.com/cpp-main/cpp-tbox/blob/fecd1157a4963b2c8f5dc42ec2caebfa6532ab10/modules/util/async_pipe.cpp#L262 看看是怎么规避。
如:`LogInfo("int:{} float:{}", 123, "hello");`
这个文件啥也没有,啥时候补一下!!!嘿嘿