#Error while building static-linked binary
1 messages · Page 1 of 1 (latest)
it's fixing if delete all .dll files from libs folder, but program can't be executed without zigdll.dll file.
translation:
The programm can't start because zigdll.dll is missing from your computer. Try reinstalling the program to fix the problem.
extern "zigdll" will make you depend on zigdll.dll at runtime
Is there way to link .lib and .dll file staticly like it does Visual Studio C++?
remove the string
extern fn...
also if you're statically linking against zig you might as well just use a single compilation unit
easier and better
To fix this you gotta move the dll into the same dir as your executable
Removing extern fn... really helped.
Is there way to "embed" dll file into zig binary? Or i can only do it with embeding dll file bytes into [_]u8 array?
I want my .dll file automatically be load when i start .exe file, like it does C++ . Is it possible?
I want my file to be standalone and can work without dll in the same directory.
I try to connect MinHook library and it's have precompiled binaries, such as .lib and .dll files:
Then you should just statically link or use single compilation unit
to make the library part of your exe
static compiling of dll is failing
And i don't know why
So, the only one variant is save .dll file bytes to array and then create dll file from runtime?