Help with TDM-GCC & Cygwin

Nov 7, 2015 at 7:08pm
closed account (1vD3vCM9)
I ALWAYS loved linux's terminal, something about it is amazing from my opinion.
and people also recommended me to compile using TDM-GCC instead of just visual studio, so i said why not.

i installed Cygwin as i won't really use it with my kali linux virtual machine ( as i have kali linux on Virtual Box ).

i followed a guide on how to compile C++/C files, and it all worked.
then i tried to also install TDM-GCC, all works good, at least THROUGH THE CMD.
and when i compile using Cygwin the files, opening them gives me an error of missing dll's. and i WONT put every single stupid .dll in the folder.
i tried compiling with CMD this time, it worked perfectly, but my question is:

is there a way to compile through Cygwin and opening the .exe WITHOUT an error?
people told me to link something to Cygwin path but i don't really know how to.
Any Help?

Thanks.
(sorry if the question was kinda confusing to understand, it's hard to describe the question)
Nov 8, 2015 at 1:41pm
closed account (1vD3vCM9)
No one??
Nov 8, 2015 at 7:57pm
You are mixing water and oil.

TDM GCC is specifically modified to compile native Windows applications.

Cygwin is specifically designed to compile middleware POSIX applications, that use a DLL to emulate POSIX-specific functionality. It works fine with the normal GCC because it is essentially cross-compiling for the Cygwin/POSIX-emulated platform.

tl;dr: when compiling on Cygwin, use the Cygwin GCC; when compiling without Cygwin, use TDM GCC.

Hope this helps.
Nov 8, 2015 at 8:22pm
closed account (1vD3vCM9)
It did help, Thanks.
Topic archived. No new replies allowed.