I am trying to install perl Tk on my Win 11 system. Perl otherwise works fine.
Strawberry Perl vs 42, v5.42.0, for MSWin32-x64-multi-thread
Is this an appropriate Perl Windows version for Tk?
Using a Developer PowerShell for Win11. Installation proceeds through many lines, then crashes as follows:
In file included from ../pTk/mTk/xlib/X11/Xlib.h:31,
from tkWinPort.h:19,
from tkPort.h:32,
from tk.h:87,
from imgBMP.c:11:
../pTk/mTk/xlib/X11/X.h:182:34: error: expected identifier or '(' before numeric constant
182 | #define ControlMask (1<<2)
| ^
WHAT is going on here? ...the (1<<2) appears to be a C++ mask for a binary 0b000010 The span between ControlMask and the (1<<2) is many space characters, not tabs. How can a #define statement possibly crash in this way?
There are also compiler errors earlier in config/pmop.c that make no sense:
Test Compiling config/pmop.c
config/pmop.c: In function 'main':
config/pmop.c:7:8: error: 'struct pmop' has no member named 'op_pmdynflags'; did you mean 'op_pmflags'?
7 | op.op_pmdynflags = 0;
| ^~~~~~~~~~~~~
| op_pmflags
config/pmop.c:8:8: error: 'struct pmop' has no member named 'op_pmpermflags'; did you mean 'op_pmflags'?
8 | op.op_pmpermflags = 0;
| ^~~~~~~~~~~~~~b
It appears that there is some version problem with op.op_pmpermflags ...
**** Has Tk been successfully compiled and installed on a 64 bit Win 11 system? ****