From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 967003858C2D for ; Wed, 22 Jun 2022 20:05:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 967003858C2D Received: by mail-wr1-x435.google.com with SMTP id q9so24932843wrd.8 for ; Wed, 22 Jun 2022 13:05:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H7p8rWU8CHUKWiriJS+5+nWGglwtrDC+PIU45ahIIVs=; b=ApGYzW1KZ+1dCKaC3w7xFiLjbcBTiAOKWfHYoUSDMJAxprP934jK4QWs/wYjD4/GrN 04vJt4CgdMFdrs1umlbRRsVGwLAZcT885VDyKsX15C/kMnVEIJu4bA2f745kmsNXsFom 3T/i9CC5KrKq/4nZkjS3Tdz3i1UrTX14KIDnxU2ZgP9DWSRHd06bhxJ6ESKOhDGkScra NSBHL58N9xnSIIuRmSed/Y80a/1AoqRWRH2cNIIYWXuPDiXWKmaGawd1UsTiysfR6Y91 fYFliGNvmEaWfUiHOwfnVTbfk/cGmJ3utFD+sInKQtbND1VqbeCMrWWeILTf+4rsNs0r UN5A== X-Gm-Message-State: AJIora9sHO/LXwaeRKMjywutjnVXOxcRGuqn2nDhgRsIOWjALgFnBcDi QbGYQvVO1E1C8mfOGqtOHGIXJDP3vImM0D8oHLk= X-Google-Smtp-Source: AGRyM1v3TpQD3MSZp50tAXCkiXtKOxAXLHRotBkkMpeAQkxsHoLcdlO4xvhFyU8daD1yfL0BKycVekFqbnAqjrgqiPw= X-Received: by 2002:a5d:6d0f:0:b0:213:7ef4:e30a with SMTP id e15-20020a5d6d0f000000b002137ef4e30amr4856403wrq.544.1655928302209; Wed, 22 Jun 2022 13:05:02 -0700 (PDT) MIME-Version: 1.0 References: <62B36A9D.20601@samuelinteriors.com> In-Reply-To: <62B36A9D.20601@samuelinteriors.com> From: Jonathan Wakely Date: Wed, 22 Jun 2022 21:04:51 +0100 Message-ID: Subject: Re: gcc update help please To: "jm@samuelinteriors.com" Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2022 20:05:05 -0000 On Wed, 22 Jun 2022 at 20:19, jm@samuelinteriors.com wrote: > > Hello. > > I have installed the stand alone CodeBlocks 17.12 . > > It came with mingw32-gcc-5.1.0.exe . That's ancient. > > I am having some difficulty compiling commands like std::codecvt_utf8 > and others. GCC 5.1 does have the std::codecvt_utf8, so I assume you're not using the -std=c++11 option. > I have looked at the page > https://en.cppreference.com/w/cpp/locale/codecvt_utf8 and they have a > list of compilers that work with their code. > > I tried some of the gcc versions and found that GCC 5.2 (C++11) works OK > with it. No it doesn't, the std::codecvt_utf8 in GCC 5.2 is identical to the one in GCC 5.1 and it doesn't handle UCS2 correctly (see https://gcc.gnu.org/PR79980 for details). The oldest versions to compile that code correctly are GCC 5.5 or anything >= 6.4 > Therefore, my question for you is: > > Where do I get a GCC 5.2 (C++11) download from you guys? You don't, sorry. The GCC project does not provide precompiled binaries. https://gcc.gnu.org/install/binaries.html I suggest you try to get a newer version of the mingw port of GCC, which you can get from the mingw project. You might want to try something other than CodeBlocks. > > Or maybe if GCC 5.5 would work for my computer. Maybe? It should do.