Date: Fri, 30 Aug 2024 19:54:41 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: J David <j.david.lists@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: Building certain ports fails with errors in system C++ libraries Message-ID: <2B2BB530-202A-4359-BFC9-A608A8FC66FE@FreeBSD.org> In-Reply-To: <CABXB=RQyTBJ1y-PzVey%2BabKNP=o5ydQGx6B%2Bq6p%2B=Y11=5H_DQ@mail.gmail.com> References: <CABXB=RQyTBJ1y-PzVey%2BabKNP=o5ydQGx6B%2Bq6p%2B=Y11=5H_DQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 30 Aug 2024, at 17:48, J David <j.david.lists@gmail.com> wrote: > > On a freshly-installed FreeBSD 14.1 amd64 system, I'm hitting errors > in the system C++ standard include files. ... > /usr/include/c++/v1/ios:260:25: error: expected ')' > 260 | static const fmtflags hex = 0x0008; > | ^ > ./edit.h:158:26: note: expanded from macro 'hex' > 158 | #define hex (editmode==HEXM) > | ^ This is the problem: do not redefine identifiers like this, as it leads to problems. Try renaming this macro to "my_hex", "le_hex" or anything but "hex". :) -Dimitry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2B2BB530-202A-4359-BFC9-A608A8FC66FE>