From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by sourceware.org (Postfix) with ESMTPS id 38A4B3858C78 for ; Fri, 17 Feb 2023 10:23:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38A4B3858C78 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1676629426; bh=l89mflqlORaWTXsvcx9Kn3aC94YQSArT1blaDnMd3zk=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=JmAvjd00lEr/zMns3Z0LNhEx1/ey+j/y6+Lv4NtMZVL2KlJLe7ugD5LRaHkQUY8em AuNXPu6TvcrUIQUeLUUKrmPjpyYBLUuRTZHeybche/R3soG3pBbfhW8gqRYRz5VzR4 AMivYmME/N/MZo2tId3CBajCxxBN30wFtLNmj5sw= Received: from [IPv6:240e:456:1110:560f:2bb9:fe5e:8a0:a178] (unknown [IPv6:240e:456:1110:560f:2bb9:fe5e:8a0:a178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 5D51165F1F; Fri, 17 Feb 2023 05:23:41 -0500 (EST) Message-ID: Subject: Re: Extra import symbol in debug build From: Xi Ruoyao To: i.nixman@autistici.org, Jonathan Wakely Cc: Gcc Help Date: Fri, 17 Feb 2023 18:23:35 +0800 In-Reply-To: <1fa9b2598357629dfaac5debd53708b3@autistici.org> References: <4f36cb6cb8e444073e1a9e253e861920@autistici.org> <82d48ece08fbe9d59cca0cebd8d04f58@autistici.org> <1fa9b2598357629dfaac5debd53708b3@autistici.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 2023-02-17 at 08:51 +0000, i.nixman--- via Gcc-help wrote: > 1. will the problem be solved by "pushing" a debug version of libstdc++= =20 > on the remote machine? Yes if you set LD_LIBRARY_PATH or something correctly. But -static-libstdc++ is easier. > 2. how can I define this symbol in the project code for debug build to > avoid having to use the debug version of libstdc++? > something like this? : > namespace std { > =C2=A0=C2=A0=C2=A0 template basic_ios >::operator= bool() const; > } You can't. Defining anything in std namespace is undefined behavior. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University