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

Compile error #41

Open
ErnestNeller opened this issue Feb 13, 2023 · 2 comments
Open

Compile error #41

ErnestNeller opened this issue Feb 13, 2023 · 2 comments

Comments

@ErnestNeller
Copy link

Hello, nice tool!

I have this error in compiling dll dwm_lut.c:4:10: fatal error: MinHook.h: No such file or directory

I installed msys2 and this packages: mingw-w64-x86_64-gcc and mingw-w64-x86_64-MinHook.

In C:\msys64\mingw64 i see MinHook.h in include.

I try to compile from the UCRT64 msys console

What could be the problem?

Thanks!

@ErnestNeller
Copy link
Author

I managed to compile it with msys2 mingw64 but it gives me this error without changing anything in the code:
image

@darkendvoid
Copy link

Clean Install of MSYS2, mingw64 console,
pacman -S mingw-w64-x86_64-MinHook
pacman -S mingw-w64-x86_64-GCC
cd to dwm_lut.c
gcc dwm_lut.c -O3 -shared -static -s -lMinHook -ld3dcompiler -luuid -Wl,--exclude-all-symbols -o dwm_lut.dll

Get the same error that ErnestNeller is getting that it failed to initialize DLL. If I replace my self compiled one with the one in the release it works.

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