I created a program and I want to run it on another PC. My program uses libzip.dll. therefore i have to keep this dll file with my exe file everywhere. How can I make the dll independent so I ship only exe file to other computers and it shouldn't give error of missing libzip.dll
file.
Currently I am compiling like this
g++ -I C:\MyProject\libzip myprogram.cpp -L. -lzip -static-libgcc -static-libstdc++
as -lzip
seems to be dynamic library I think that's why I must keep it with exe. I tried to add like -static-lzip
but it doesn't work.