Jump to content

Standard Compliance for Windows

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Virtual

Virtual

    Newbie

  • Members
  • Pip
  • 5 posts
Hey which windows compiler is more standard MinGW or Cygwin???

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
The most Windows compatible compiler are probably the compiler which ships with Visual C++ (and Visual Studio, and probably other products too), as it's developed by Microsoft. So I would say it's the "standard" compiler for Windows, though I, personally, prefer GCC, no matter what platform I'm on.

#3
Rothzael

Rothzael

    Newbie

  • Members
  • PipPip
  • 27 posts
Out of the two, I personally prefer MinGW.
Programming Assignment Help
while(true) { cout << "Idiot!" << endl; }

#4
G_Morgan

G_Morgan

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 537 posts
Cygwin is more standards compliant but is also more of a pain to set up and use. I'd go for MinGW.

Standards and Windows is a contradiction of terms though. If you're that concerned then I'd do parallel testing on a Unix system. Replace any functions that don't act equivalently with your own (getline is a good example, the Windows version does some pretty non standard things which are slightly better but still aren't standard so are harder to work with in terms of portability).

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Also, be aware that there are some things that are not specified by the standard, which means that you can have varying behaviors that are all "standards compliant".
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog