Why do you want to compile with gcc, it doesn't even has an optimizer. If you want to compile on a unix machine, I suppose that makes sense, but otherwise I can't see a reason. Anyway, it shouldn't be hard, just learn to create a gcc makefile, and as long as you don't use any MS-only C++ stuff (like __int64) you shouldn't have too much trouble, just copy the source files and do it like you normally would.