Giter Club home page Giter Club logo

messy_test's Introduction

Messy_Test

The main role of the project:

The version of each open source library see: version.txt

The project support platform:

  • Windows 10 64-bit: It can be directly build with VS2022 in windows 10 64-bit.
  • Linux(ubuntu 22.04, gcc 11.2.0):
    • CppBaseTest supports cmake build(file position: prj/linux_cmake_CppBaseTest/)
    • DesignPatternsTest supports cmake build(file position: prj/linux_cmake_DesignPatternsTest/)
    • gtest_Test support cmake build(file position: prj/linux_cmake_gtest_Test/)
    • Json11_Test support cmake build(file position: prj/linux_cmake_Json11_Test/)
    • miniz_Test support cmake build(file position: prj/linux_cmake_miniz_Test/)
    • spdlog_Test support cmake build(file position: prj/linux_cmake_spdlog_Test/)
    • cJSON_Test support cmake build(file position: prj/linux_cmake_cJSON_Test/)
    • Messy_Test support cmake build(test code include: yaml-cpp, RapidJSON, libuuid, TinyXML2, jemalloc, ThreadPool; file position: prj/linux_cmake_Messy_Test/)
    • Plugin_Test support cmake build(file position: prj/cmake_Plugin_Test, it supports both windows and linux)

Windows VS Screenshot:

Blog: fengbingchun

messy_test's People

Contributors

fengbingchun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

messy_test's Issues

Ubuntu上编译出错

博主你好,我尝试在Ubuntu18.04下编译linux_cmake_CppBaseTest,结果发现编译出错了,似乎是因为编译选项添加有问题,导致没有识别出C++11及以上版本,博主能否帮忙看一下?
这是错误信息:
/home/lhh/Documents/learning/coding/Messy_Test/demo/CppBaseTest/effective_modern_cplusplus.cpp: In member function ‘double effective_modern_cplusplus_::Point16::distanceFromOrigin() const’:
/home/lhh/Documents/learning/coding/Messy_Test/demo/CppBaseTest/effective_modern_cplusplus.cpp:633:15: error: ‘sqrt’ is not a member of ‘std’
return std::sqrt((xx) + (yy));
^~~~
/home/lhh/Documents/learning/coding/Messy_Test/demo/CppBaseTest/effective_modern_cplusplus.cpp:633:15: note: suggested alternative: ‘sort’
return std::sqrt((xx) + (yy));

/home/lhh/Documents/learning/coding/Messy_Test/demo/CppBaseTest/effective_modern_cplusplus.cpp: In function ‘int effective_modern_cplusplus_::test_item_32()’:
/home/lhh/Documents/learning/coding/Messy_Test/demo/CppBaseTest/effective_modern_cplusplus.cpp:1244:20: error: ‘bind’ is not a member of ‘std’
auto func7 = std::bind([](const std::unique_ptr& pw) {return pw->isValidated() && pw->isArchived(); }, std::make_unique()); // C++11
^~~~
/home/lhh/Documents/learning/coding/Messy_Test/demo/CppBaseTest/effective_modern_cplusplus.cpp:1244:20: note: suggested alternative: ‘find’
auto func7 = std::bind([](const std::unique_ptr& pw) {return pw->isValidated() && pw->isArchived(); }, std::make_unique()); // C++11

Fixed compilation failure in Linux environment

Failed to build CppBaseTest due to some definition missing, fixed by the below patch. Please help review.

diff --git a/demo/CppBaseTest/effective_modern_cplusplus.cpp b/demo/CppBaseTest/effective_modern_cplusplus.cpp
index 07c3e04..2dbf41d 100644
--- a/demo/CppBaseTest/effective_modern_cplusplus.cpp
+++ b/demo/CppBaseTest/effective_modern_cplusplus.cpp
@@ -1,6 +1,8 @@
 #include "effective_modern_cplusplus.hpp"
 #include <cstddef>
 #include <cstdint>
+#include <cmath>
+#include <functional>
 #include <iostream>
 #include <array>
 #include <vector>
diff --git a/demo/CppBaseTest/set.cpp b/demo/CppBaseTest/set.cpp
index a0ee1f1..1749cc0 100644
--- a/demo/CppBaseTest/set.cpp
+++ b/demo/CppBaseTest/set.cpp
@@ -7,6 +7,7 @@
 #include <functional>
 #include <iomanip>
 #include <algorithm>
+#include <cmath>
 
 // Blog: http://blog.csdn.net/fengbingchun/article/details/63268962

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.