Skip to content

Build fail in MinGW #217

Closed
Closed
@smpn2

Description

@smpn2

Of course, I understand that it is better to build it in an Docker environment, but because of RapidJSON, it cannot be built with the latest MinGW toolchain.

Please apply this patch or update libs.

diff --git a/external/rapidjson/document.h b/external/rapidjson/document.h
index 151f5de..12a98ee 100644
--- a/external/rapidjson/document.h
+++ b/external/rapidjson/document.h
@@ -329,7 +329,7 @@ struct GenericStringRef {
     operator const Ch *() const { return s; }
 
     const Ch* const s; //!< plain CharType pointer
-    const SizeType length; //!< length of the string (excluding the trailing NULL terminator)
+    unsigned int length; //!< length of the string (excluding the trailing NULL terminator)
 
 private:
     //! Disallow construction from non-const array

Step by reproduce:

  • Install MSYS2
  • $ pacman -Syu
  • $ pacman -S mingw-w64-x86_64-toolchain mingw-w64-i686-toolchain
  • Open CLion and configure toolchain.
  • Build

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions