c/c++

CMake is a very complicate program worth writing a book about it. But like you, I’ve no time to know every detail of CMake. So I prepare this minimal tutorial […]

When your project links to libprotobuf, you may get the following errors: libprotobuf.lib(descriptor.cc.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT_StaticRelease’ doesn’t match value ‘MD_DynamicRelease’ in mocs_compilation.cpp.obj libprotobuf.lib(common.cc.obj) : […]

When building a project on Windows using CMake, I got this error:   Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) Call Stack (most recent call first): C:/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/CMake/share/cmake-3.25/Modules/FindProtobuf.cmake:650 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) […]

When I built a project with CMake, I got this error:  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Call Stack (most recent call first): C:/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/CMake/share/cmake-3.25/Modules/FindCURL.cmake:182 (find_package_handle_standard_args) cmake/libcurl.cmake:5 (find_package) […]

We’ve talked about how to build openssl with msys2 and Mingw. Today, I will talk about how to build openssl with Visual Studio 2017 and NASM. step1: download/install required software […]

I have little knowledge about ipv6 address. All I know is that it is longer than ipv4 address thus can be assigned to more hosts in the world. ipv6 addresses […]

The idea behind dkim is simple. You add a “DKIM-Signature:” in your email message. The stmp server receiving the email checks the header, pulls the dns record of the domain, […]

sha256 is an algorithm to map a string of any length to a 256bit string(so called hash). The input of the algorithm is a string of any length but the […]