I have tried many things, but no matter what I do my compiler crashes when I use the function.
I'm using Code::Blocks with MinGW, GCC 4.7 on Windows 8.
When I put the function in comments the whole program starts working, but no matter what button I want to check for the process "ld.exe" stops working.