From 3174fccb8385383b88287f59400c3f39f7f44885 Mon Sep 17 00:00:00 2001 From: askmyteapot <62238146+askmyteapot@users.noreply.github.com> Date: Sat, 16 May 2026 10:55:56 +1000 Subject: [PATCH] Fix linker error for kcpp_permit_any_repack (#2210) Fixes `gpttype_adapter.lib(gpttype_adapter.obj) : error LNK2019: unresolved external symbol "int kcpp_permit_any_repack"` It's a `bool`, not an `int` --- gpttype_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpttype_adapter.cpp b/gpttype_adapter.cpp index b6c4f7f73..ce0c24b90 100644 --- a/gpttype_adapter.cpp +++ b/gpttype_adapter.cpp @@ -172,7 +172,7 @@ static std::map> antislop_banned_token_ids; //first is the static int savestate_limit = 0; static std::vector savestates; -extern int kcpp_permit_any_repack; +extern bool kcpp_permit_any_repack; inline int kcpp_cpu_has_blas(void) { #if defined(GGML_USE_BLAS) || defined(GGML_USE_CUDA) || defined(GGML_USE_VULKAN) || defined(GGML_USE_SYCL)