How to compile a C++ program in Windows 7 Command Prompt?
-
Hello, I was wondering, if there was a way to compile C+ code that I wrote with Notepad++ in the Windows CMD program? I can't afford Visual Basic, so that is out of the question. ...show more
-
Answer:
MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications. MinGW provides a complete Open Source programming tool set which is suitable for the development of native MS-Windows applications, and which do not depend on any 3rd-party C-Runtime DLLs. (It does depend on a number of DLLs provided by Microsoft themselves, as components of the operating system; most notable among these is MSVCRT.DLL, the Microsoft C runtime library. Additionally, threaded applications must ship with a freely distributable thread support DLL, provided as part of MinGW itself). MinGW compilers provide access to the functionality of the Microsoft C runtime and some language-specific runtimes. MinGW, being Minimalist, does not, and never will, attempt to provide a POSIX runtime environment for POSIX application deployment on MS-Windows. If you want POSIX application deployment on this platform, please consider Cygwin instead. Primarily intended for use by developers working on the native MS-Windows platform, but also available for cross-hosted use, (see note below -- you may need to follow the "read more" link to see it), MinGW includes: A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers; GNU Binutils for Windows (assembler, linker, archive manager) A command-line installer (mingw-get) for MinGW and MSYS deployment on MS-Windows A GUI wrapper (mingw-get-inst) for the command line installer MSYS, a contraction of "Minimal SYStem", is a Bourne Shell command line interpreter system. Offered as an alternative to Microsoft's cmd.exe, this provides a general purpose command line environment, which is particularly suited to use with MinGW, for porting of many Open Source applications to the MS-Windows platform; a light-weight fork of Cygwin-1.3, it includes a small selection of Unix tools, chosen to facilitate that objective.
WJZZDXZWZ5GB77GCRNCMEXCWKY at Yahoo! Answers Visit the source
Other answers
You say that you can't afford Visual Basic, but that can't be, because you can get the express version for free. See link. Scroll down to the "Visual Studio Express" section, then click "Visual Studio Express 2013 for Windows Desktop". This will give you both Visual Basic, and C++. (It will cost you some disk space). You can then compile and run your C++ code inside the IDE, which is a bit better than Notepad++.
Ratchetr
Yes, there is. You should also be able to configure Notepad++ so you can compile and run it from Notepad++. Do you know if the compiler has been properly installed on your system?
EddieJ
Related Q & A:
- How to run an executable from within a c program?Best solution by Stack Overflow
- In Visual Studio 2012 or 2013, how can I register a DLL file on Windows 7 64-bit computer using a Custom Action command?Best solution by Stack Overflow
- What is a good program like Windows Movie Maker?Best solution by Yahoo! Answers
- How do I download outlook express on windows 7?Best solution by Yahoo! Answers
- How do I use dual monitors in Windows 7?Best solution by cnet.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.