Can I force visual studio to use mingw compiler
Asked Answered
P

2

15

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

Prestige answered 2/3, 2013 at 12:43 Comment(3)
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.Gasket
As i recognized there is no way to achieve my purpose? There will be such a project as you describe.Prestige
Hmm. Have you tried Eclipse CDT or Code::Blocks? I personally like Eclipse CDT, even though it can't match VS's IntelliSense capabilities.Gasket
W
3

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.

Wesley answered 2/3, 2013 at 12:51 Comment(0)
S
7

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.

Saree answered 4/3, 2013 at 1:58 Comment(0)
W
3

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.

Wesley answered 2/3, 2013 at 12:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.