VecTcl icon indicating copy to clipboard operation
VecTcl copied to clipboard

make it compile under the latest mingw64 environment

Open teclabat opened this issue 2 months ago • 0 comments

  • Problem: The parameter name select in functions dgees_ and zgees_ conflicted with the Windows select() system call
  • Fix: Renamed the parameter from select to select_fn in:
    • Function declarations in clapack_cutdown.h:19-20
    • Function definitions in clapack_cutdown.c:8518,8870
    • All usages in clapack_cutdown.c:8720,8832,9065
  1. Old K&R style function pointer type
  • Problem: The L_fp typedef used old K&R style () which modern gcc treats as "zero parameters"
  • Fix: Added explicit casts when calling the function pointer:
    • clapack_cutdown.c:8720: Cast to (logical ()(doublereal, doublereal*))
    • clapack_cutdown.c:8832: Cast to (logical ()(doublereal, doublereal*))
    • clapack_cutdown.c:9065: Cast to (logical ()(doublecomplex))

teclabat avatar Nov 20 '25 12:11 teclabat