From 6d353d02024acd916a89076d6895fdf5580dd6e6 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 15 Oct 2025 19:04:55 +1100 Subject: [PATCH 1/5] try adding LDFLAGS at top of file --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 149fbe8..5cceb39 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,4 @@ +// #cgo LDFLAGS: -L${SRCDIR}/libs -llibcodex package main import ( From ddcd4dcda8c634fe1cb86fa2ee1fc1dc87cb4551 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 15 Oct 2025 19:10:02 +1100 Subject: [PATCH 2/5] remove setting of path --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d6a580a..9e4770f 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,8 @@ build: run: ifeq ($(OS),Windows_NT) dir libs - cmd /C "set PATH=%CD%\\libs;%PATH% && .\$(BIN_NAME)" + copy libs\libcodex.dll . + $(BIN_NAME) else ./$(BIN_NAME) endif From 4fb61d4afcf46ccfa069a03c330277edb8fba27a Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 15 Oct 2025 19:15:14 +1100 Subject: [PATCH 3/5] try powershell command --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9e4770f..2abda1b 100644 --- a/Makefile +++ b/Makefile @@ -38,9 +38,8 @@ build: run: ifeq ($(OS),Windows_NT) - dir libs - copy libs\libcodex.dll . - $(BIN_NAME) + Copy-Item libs\libcodex.dll . + .\$(BIN_NAME) else ./$(BIN_NAME) endif From 56e12ee58c48f8064b8507e73978852181e0e724 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 15 Oct 2025 19:17:33 +1100 Subject: [PATCH 4/5] another powershell command --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2abda1b..1a32c3b 100644 --- a/Makefile +++ b/Makefile @@ -38,8 +38,8 @@ build: run: ifeq ($(OS),Windows_NT) - Copy-Item libs\libcodex.dll . - .\$(BIN_NAME) + pwsh -Command "Copy-Item libs\libcodex.dll ." + pwsh -Command ".\$(BIN_NAME)" else ./$(BIN_NAME) endif From 1c394f0de8ca749ace33886644161b9649954e97 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 15 Oct 2025 19:20:51 +1100 Subject: [PATCH 5/5] trying without LDFLAGS directive in main --- main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/main.go b/main.go index 5cceb39..149fbe8 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,3 @@ -// #cgo LDFLAGS: -L${SRCDIR}/libs -llibcodex package main import (