I am using MinGW to create a dll and everything works fine. Yet, when I use the dll in my projects, it needs other dlls to work. How can I embed other dlls to my dll. I know that while compiling I need *.lib files but how can be this statically compiled. What I have done is
gcc -shared -static -o filename.dll somefiles.c .... -Lc:/directoryOfLibrary -llibfile
this command successfully creates a filename.dll and I can use it in my program provided that depended dlls are in the same folder.
Secondly, I am using some gtk libraries like glib and my dll needs libglib-2.0.dll, but in lib folder of gtk there are glib-2.0.lib and libglib-2.0.dll.a. Which one to use in order to statically compile?