Re: pgsql: tests: Add a test C++ extension module
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: Peter Eisentraut <peter@eisentraut.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-01-21T21:16:26Z
Lists: pgsql-hackers
On Wed, Jan 21, 2026 at 4:00 PM Jelte Fennema-Nio <postgres@jeltef.nl> wrote: > Seems like the same error as Peter Smith. So I guess clang 15 doesn't > use C++11 by default. Did you try if my proposed patch solves it? > Another way of fixing your problem would have been: > CXX='/path/to/os-version/clang -std=gnu++11' Oh, I didn't realize that it was the same problem. I've now tested your patch and I find that it makes the build work for me without needing to set CXX. IOW, yes, it does fix the problem. The worst part about this, IMHO, is that the error message was totally impenetrable. But I guess we can't do much about that. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
Detect if flags are needed for C++11 support
- ae4fe737aea3 19 (unreleased) landed
-
tests: Add a test C++ extension module
- 476b35d4e311 19 (unreleased) cited