Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a question. I recently discovered one of my old apps (it's written in VB.NET, I use C# now), but it's still good and I want to include a C++ compiler in it. It's a text editor, so I want it to be able to compile .cpp files. I googled around searching for a compiler and read about Dev-C++'s "mingw32-gcc.exe" - that it could be used as a compiler when given the proper commandline arguments.
CAn someone help me on how to use this file, should I use other files, what arguments it needs, etc.?
Posted

Mingw - Minimalist GNU for Windows[^].

gcc compiler options[^].

This isn't a single file - it's a development environment somewhat simulating linux/U*ix on windows.

You can use the .Net Process class to invoke any application, including gcc.

Regards
Espen Harlinn
 
Share this answer
 
I suggest that you continue to use google to find the documentation for that compiler, which really shouldn't be too hard since it's free, and reasonably well-documented.
 
Share this answer
 
BTW, were you aware that you can use the command line compiler that comes with Visual Studio as well?

EDIT ==============

Why distribute it with your app when a single line of text will fix the problems:

"Requires Visual Studio 20xx."

At that point, all you have to do is prompt the user to give you path to Visual Studio, or alternatively, finger out where it is programatically.
 
Share this answer
 
v2
Comments
User970 8-Jan-11 8:51am    
No, I didn't know that! How could I distribute it with my app?
#realJSOP 9-Jan-11 6:17am    
You want to distribute a compiler with your application? What on earth for?
User970 10-Jan-11 8:17am    
I want to make my hybrid text editor capable of compiling programs WITHOUT Visual Studio. Nevertheless, I found what I needed - I'll use MinGW. Thanks all.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900