Answer the question
In order to leave comments, you need to log in
Windows development - MSVC or TDM GCC (MinGW)?
Until recently, I used CodeLite + TDM GCC and was happy with everything.
But, having tried (we are talking about pure C ++, of course), Visual Studio was pleasantly surprised by the power of this IDE.
The only thing that worries me is the quality of MSVC Studio.
Often heard that it is not fully compliant with C++14.
When transferring a couple of projects to it, I immediately noticed the difference:
1) Different content of the same headers
For example, in TDM GCC operator >>
for std::istream
and already comes with (somewhere inside its includes).
In the studio you need to connect .
2) MSVC quietly compiles something likestd::string
<iostream>
<string>
std::cout<<std::string(
std::istream_iterator<char>(
std::ifstream("CppExpr.vcxproj")), std::istream_iterator<char>());
(MinGW throws an error) but does not compile the code unless a non-void function returns a value (MinGW compiles). struct Point {
int X = 0;
int Y = 0;
};
Point A { 1, 2 };
Answer the question
In order to leave comments, you need to log in
3) Using list-initialization for structures (POD) with already pre-initialized fields:
Connect MinGW with its headers to the studio and everything will be as it was.
Try VS 15 Preview -- not to be confused with 2015. As far as I know, C++14 is pretty well supported there. Naturally, in order for the code to compile under both msvc and gcc, you often have to put in a lot of effort. In this regard, nothing is going to change.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question