I don't like qt creator as IDE and love VS, but I must use exactly mingw compiler. Sad story :'(
-
Is this a large project with lots of files and a complicated build structure? If not, why don't you simply develop and compile your code with VS, and when you have to hand your binaries in, simply recompile them within mingw. – us2012 Mar 02 '13 at 12:45
-
As i recognized there is no way to achieve my purpose? There will be such a project as you describe. – Juriy Mar 02 '13 at 12:51
-
Hmm. Have you tried Eclipse CDT or Code::Blocks? I personally like Eclipse CDT, even though it can't match VS's IntelliSense capabilities. – us2012 Mar 02 '13 at 12:58
2 Answers
Just set up a makefile project - that way you can tell VC what command to run to compile your files.
You have to maintain a makefile in addition to the Visual Studio project, but that's really not too big of a problem since in that case the VS project becomes just a list of the files you want Visual Studio to know about.
Unfortunately, the VS debugger is not useful in this scenario, but all of the IDE's code navigation works fine.

- 333,147
- 50
- 533
- 760
You can't easily replace the C++ compiler in Visual Studio.
But at one time (in the 1990's) I used Visual Studio as simply an editor for Java. And since there are extensions for e.g. the D programming language (well that's the only one I've used) you can certainly, with a lot of work, make the full Visual Studio work with g++ or any other compiler for whatever language, as an additional "language". It can even work with the debugger, if the language implementation is suitable for that.
It's just that nowadays it's much easier to use an IDE that does support the tools you want to use. E.g., for g++ you have Eclipse, Code::Blocks, even old DevC++, etc. Oh yes, and the QT thing.

- 142,714
- 15
- 209
- 331