How to compile OpenCV on Windows?

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

Was this solution helpful to you?

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

Just Added Q & A:

Find solution

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.