I've added that however the program seems to still be trying to link libstdc++-6.dll dynamically as my exe just immediately returns to the prompt and when I use cygcheck, it continues to give me the following error message:

cygcheck: track_down: could not find libstdc++-6.dll

On Sun, Jun 3, 2012 at 9:18 PM, NightStrike <nightstrike@gmail.com> wrote:
On Thu, May 31, 2012 at 5:00 AM, Dennis Isenhour
<dennis.isenhour@gmail.com> wrote:
> I thus located ./gcc/i686-pc-mingw32/4.5.2/debug/libstdc++-6.dll and copied
> it to my local build area, which ultimately resolved my issue.† However, I
> would prefer NOT to have to distribute this dll with my executables and I am
> thus now attempting to figure out how to link this new apparently required
> library statically, however I canít seem to locate libstdc++-6.a or
> libstdc++-6.so anywhere in my cygwin repository.† Anyone who can provide me
> with any further insight or useful information would be greatly appreciated!

Use g++ -static-libstdc++

There's a couple others that you might want. †Grep this on static:

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
MinGW-users mailing list

This list observes the Etiquette found at
We ask that you be polite and do the same. †Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe