Juriy
Juriy

Reputation: 585

Can I force visual studio to use mingw compiler

I don't like qt creator as IDE and love VS, but I must use exactly mingw compiler. Sad story :'(

Upvotes: 15

Views: 24757

Answers (2)

Michael Burr
Michael Burr

Reputation: 340416

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.

Upvotes: 7

Cheers and hth. - Alf
Cheers and hth. - Alf

Reputation: 145419

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.

Upvotes: 3

Related Questions