dimanche 16 mars 2014

C++ under Windows ("stoi" under MinGW) topic




It seems that one cannot call »::std::stoi« under MinGW because it
will break existing programs using the Windows versions of [v]swprintf.

Well, if I do not want to use Windows functions, but just want to
run portable C++ code, what can I do under Windows?

Can one download a recent g++ executable for the Windows command
line (it does not have to support special Windows libaries)?

Is there an explanantion how to call the existing g++.exe of MinGW
to use it as a plain C++ compiler without the Windows support of MinGW?

I just want to run portable C++ code under Windows,
and without »::std::stoi« it's not C++.






Aucun commentaire:

Enregistrer un commentaire