Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run in windows; libmcfgthread-1.dll was not found #309

Closed
jxqu3 opened this issue Nov 11, 2023 · 2 comments
Closed

Cannot run in windows; libmcfgthread-1.dll was not found #309

jxqu3 opened this issue Nov 11, 2023 · 2 comments

Comments

@jxqu3
Copy link

jxqu3 commented Nov 11, 2023

After successfully building the game I tried running it in Windows Sandbox to see if it required any deps. I cannot run because it cannot find libmcfgthread-1.dll
image

@gen2brain
Copy link
Owner

Not related to raylib/raylib-go. That has everything to do with your toolchain, i.e. old MinGW, broken install, etc. You didn't mention what C compiler are you using.

@gen2brain
Copy link
Owner

You can also compile a static binary, i.e.:

$ CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -ldflags "-s -w '-extldflags=-static'"
$ file basic_window.exe
basic_window.exe: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows, 11 sections

Anyway, even without -extldflags=-static the binary should work without dependencies, try using TDM-GCC, in Windows that one always just worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants