[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem and patch macos
From: |
Thomas Dickey |
Subject: |
Re: problem and patch macos |
Date: |
Sun, 26 Jan 2025 18:27:28 -0500 |
On Sun, Jan 26, 2025 at 06:08:22PM -0500, Carl Hansen wrote:
>
> a compilation problem, followed by a patch
>
> x86_64-apple-darwin17.7.0
> MacOS 10.3.6
> It claims g++ but it lies, really Apple LLVM version 10.0.0
> (clang-1000.10.44.4)
yes - Apple's been doing that a while
(at least in this case, your machine's not bleeding edge).
The same applies to "gcc".
> diff -x config.log -x config.status -ru
> tmp/ncurses-6.5-20250125/c++/cursesf.cc
> work/ncurses-6.5-20250125/c++/cursesf.cc
> --- tmp/ncurses-6.5-20250125/c++/cursesf.cc 2025-01-25 13:20:17.000000000
> -0800
> +++ work/ncurses-6.5-20250125/c++/cursesf.cc 2025-01-26 14:33:30.453728138
> -0800
> @@ -32,6 +32,7 @@
> * Author: Juergen Pfeifer, 1997 *
>
> ****************************************************************************/
>
> +#include <new>
> #include "internal.h"
> #include "cursesf.h"
> #include "cursesapp.h"
> diff -x config.log -x config.status -ru
> tmp/ncurses-6.5-20250125/c++/cursesm.cc
> work/ncurses-6.5-20250125/c++/cursesm.cc
> --- tmp/ncurses-6.5-20250125/c++/cursesm.cc 2025-01-25 13:20:17.000000000
> -0800
> +++ work/ncurses-6.5-20250125/c++/cursesm.cc 2025-01-26 14:35:25.560419576
> -0800
> @@ -32,6 +32,7 @@
> * Author: Juergen Pfeifer, 1997 *
>
> ****************************************************************************/
>
> +#include <new>
thanks. Actually I tried that yesterday, but the clang configuration I was
using failed on _that_, so I used the exception header, in etip.h:
#elif defined __CLANG
# include <exception>
I'll have to add a configure check to (try to) pick a working header.
> #include "internal.h"
> #include "cursesm.h"
> #include "cursesapp.h"
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature