GNU compiler?

If I am using a windows machine, but need to write c++ code for a unix based environment (build with GNU), what kind of compiler can (should) I use?

I google searched my way to find MinGW, but I don't know if this will work.
I installed Cygwin, it gives you a Linux emulation that you can use gcc in...it's not bad.
Do you need to write code that uses UNIX interfaces, or do you need to compile code so that it will run on some UNIX?
Cygwin and MinGW will compile the code you give them, but the result will still be a Windows binary.
If you write platform independent code, then what you write to compile under MingW will compile under G++ on *Nix. :)
ok thanks
[SIZE=1][FONT=arial]__________________
[URL=http://www.topdevices.info/]top devices[/URL] [URL=http://www.topexercises.info/]top exercises[/URL] [URL=http://www.toppatches.info/]top patches[/URL] [URL=http://www.toppenispills.info/]top pills[/URL] [URL=http://www.top5weightlosspills.com/]weightloss pills[/URL] [URL=http://www.antiagingreviews.info/]antiaging products[/URL] [URL=http://www.topskincare.info/]skincare reviews[/URL] [URL=http://www.topfemalelibido.com]female libido[/URL] [URL=http://www.aeoartsentertainment.com/]arts entertainment[/URL] [URL=http://www.aeobeauty.com/]beauty skincare[/URL]
Topic archived. No new replies allowed.