I would like to use mingw 4.5.2 with prebuilt boost 1.46.1 libs. I didn't want to compile the boost source because saving time therefore I downloded it from http://www.cogniteam.com/wiki/index.php?title=Main_Page webpage.
There are appropriate libs for mingw 4.5.2 When I compiled my source with boost test it worked fine. However I want to use boost thread too. I found a common small tutorial code on google.
I could compile successfully and link this program and I got nothing error messages. If I want to execute this program, It quits immediately after launching. Nothing error message, exception etc.
Could it be that you are running your code from eclipse ? We noticed the console closes quickly there.
Try running it from the system console or in debug mode. We tried your code and it works for us.