KDevelop4/Manual/WindowsSetup

From KDE UserBase Wiki
Revision as of 00:31, 10 October 2016 by Kfunk (talk | contribs) (Structure a bit more, center pictures)

Using KDevelop on Windows for C++ development

KDevelop does not ship a compiler, nor a build system; it is just a tool to edit source code. To actually compile C++ programs, you need a toolchain containing those. There is currently one recommended and supported workflow for developing on Microsoft Windows.

Prerequisites

Choose whether to install either GCC via MinGW or the Microsoft Visual Studio IDE. Both ship C/C++ compilers. Installing and using Visual Studio is the recommended & tested workflow at this point.

Get KDevelop

  • Install KDevelop. Get the installer from here: https://www.kdevelop.org/download.
  • Run KDevelop by clicking the KDevelop - Microsoft Visual C++ compiler shortcut in your start menu, which will set up the necessary environment.
  • Now, you can use KDevelop's "Build" and "Run" tools as usual. For example, you can create a "Hello World" program by selecting Project -> New from Template -> Standard; then simply click "Build" and "Execute".