This is the error:
[hr]14176 [main] a 1004 _cygtls::handle_exceptions: Error while dumping stat (probably corrupted stack)
Segmentation fault (core dumped)
I fixed all the compile errors, and it compiled just fine. It's when I run the compiled program that comes up. I'm completely stumped please help.