When I try to debug my code ... it doesn't go into my Winmain function .. so my assumption is that there is a main() function somewhere in one of the libraries that i link with. but which one! ... so to find this ... It would be a good idea to dump a .map file of all the references. I'm sure its feasible using the compiler (which is by the way Mingw32 GCC). can someone help me on this. ??