Failing to create static link program with gcc Cygwin on Windows 10
by jmgibson1981 from LinuxQuestions.org on (#6H1PX)
Cygwin on Windows. Compiling a simple hello world with Code:gcc -static -static-libgcc test.c from the cmd prompt
Upon running the created executable in Wine on a debian vm it fails saying it needs the cygwin1.dll. So it's not fully statically linked.
How can I get it to be a totally independent executable? I suppose the same question for the Linux side as well as I haven't tried to statically compile something on linux yet.
Upon running the created executable in Wine on a debian vm it fails saying it needs the cygwin1.dll. So it's not fully statically linked.
How can I get it to be a totally independent executable? I suppose the same question for the Linux side as well as I haven't tried to statically compile something on linux yet.