Code::Blocks on Windows Installation Guide using Msys

Similar documents
Code::Blocks Student Manual

Code::Blocks Student Manual

HOW TO USE CODE::BLOCKS IDE FOR COMPUTER PROGRAMMING LABORATORY SESSIONS

Using the GCC toolchain for Mulle SW development.

VikiLABS. July 8, 2017

Intermediate Programming, Spring Misha Kazhdan

The build2 Toolchain Installation and Upgrade

Eclipse Environment Setup

Overview. NETRON TECHNICAL NOTE February 2008 Summary

Makefile Practice: Part 1 Making a Single Program without Templated.h Files: Get the MakeBasics folder from the CS260 repository.

Command Line Navigation and Compiling

Spectrometer Visible Light Spectrometer V4.4

Structured programming

Introduction. Purpose. Objectives. Content. Learning Time

Installation Guide Windows 8

Building FFplay for Windows Using MinGW and MSYS

How to: Use the new Print to Fax and Print to Inbox printers

Chapter 5 Making Life Easier with Templates and Styles

CS354 gdb Tutorial Written by Chris Feilbach

Setting up a compiler

PYOTE installation (Windows only) 1 December 2018

A Tutorial on using Code::Blocks with Catalina 3.0.3

Hello, World! in C. Johann Myrkraverk Oskarsson October 23, The Quintessential Example Program 1. I Printing Text 2. II The Main Function 3

Cadence Verilog Simulation Tutorial Mark L. Chang Last revision: September 18, 2005 Cadence version: Cadence IUS s011

Final Exam, CS130 Fall 2008

Startup Notes for CMD 2015.x with Remote Database Server Software for CMD 2015, 2014, and 2013 Users

Tip 63: Seamlessly extend C structures

Installing an IDE ELECTRICAL ENGINEERING AND COMPUTER SCIENCE DEPARTMENT. A practical guide to installing NetBeans for Java and C/C++

AlphaBeam. Description. Requirements. for PC

Startup Notes for Standard CMD 2015.x Setup

Coding in C at Home. Part 2 Computational Physics. April 21, 2016

COP 3014: Spring 2018 A Guide to Using CLion

Using Eclipse for C Programming

Installing and Using Dev-C++

CSE 143: Computer Programming II Summer 2017 HW5: Anagrams (due Thursday, August 3, :30pm)

ACS Technical Bulletin

Mehran Sahami Handout #5 CS 106A September 27, 2017 Downloading Eclipse

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

5. Optionally configure the generator options. Read the section below for a description of options. 6. Click Generate to generate code.

SAS Installation via the Client-Server Image (CAHNRS Site License)

Frequency Distributions and Descriptive Statistics in SPS

ProtoCOL 3 Software Installation - Quick Guide

PAS. Installation Guide. BG0608 Rev. A1. Copyright SATEC Ltd.

If you are on a Mac/Linux box, some commands will differ, but many will be the same.

Software Quick Start Guide

CS11 Intro C++ Spring 2018 Lecture 4

Installing Curator Tool ( or later versions)

Mehran Sahami Handout #5 CS 106A September 26, 2018 Downloading Eclipse

Assignment 1c: Compiler organization and backend programming

Chapter 2. Editing And Compiling

GuitarPort 2.5 Users You do NOT have to uninstall GuitarPort 2.5 before installing GearBox.

Installing FileMaker Pro 11 in Windows

EPSON RC Release Notes February 22, 2010

ROCK-POND REPORTING 2.1

DOWNLOAD AND INSTALL ERDAS IMAGINE

Building Allegro 5 Library using TDM-GCC and CMake

Lab A: Using Windows 2000 Help

Make Courses User Guide. version

Computer and Programming: Lab 1

Installing Version 14.4 Drivers & Firmware for Colordyne Printer

Technical Support: CUBE USER MANUAL

Installing MS Office 2000 Professional For Windows 98/2000/XP

Debugging in Small Basic is the process of analysing a program to detect and fix errors or improve functionality in some way.

We first learn one useful option of gcc. Copy the following C source file to your

JEE2600 INTRODUCTION TO DIGITAL LOGIC AND COMPUTER DESIGN. ModelSim Tutorial. Prepared by: Phil Beck 9/8/2008. Voter Function

Virto Active Directory Service for SharePoint. Release Installation and User Guide

INTERNATIONAL HEALTH INSURANCE

USING CODEBLOCKS. Implementing Computational Models

Upgrading the Secure Access Unified ID System to Equitrac Office Equitrac Corporation

xpresso for Dreamweaver Installation Guide Version 3.0 SP1

Finding out about C++ Installing Code::Blocks on Windows, Ubuntu Linux, or Macintosh OS X Creating your first C++ program Executing your program

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit

Safe Mode: Solve Startup Problems & Crashes S 3/1. Solve (Almost) Any Problem Your Computer May Have

CS125 : Introduction to Computer Science. Lecture Notes #4 Type Checking, Input/Output, and Programming Style

getting STARTed Virtual Coin Cabinet 2v9 beta COIN database SOFTWARe STePHeN HUSTON FileMaker Pro developer .A FIleMAKeR PRO 10 RUNTIMe SOlUTION

Chapter 21 Restart. Types of power supply

Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer

Image Loader Program (ILP) for High Performance Controllers. Book E33 - version 1.03

Copyright Autodesk, Inc.

Compiling with Multiple Files The Importance of Debugging CS 16: Solving Problems with Computers I Lecture #7

ProjectDox Client Components

Code Blocks Cannot Find Compiler Executable Windows 7

USB-MIDI Driver installation and settings...1 Windows XP users... 1

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

MAME - Compilingscript V2.3a

Using Report Builder in Total Grant Solution (TGS)

IQCare Troubleshooting Guide

Adobe Dreamweaver CS3 English 510 Fall 2007

Unit 10. Linux Operating System

PropertyBoss Upgrade

Primavera P6 Professional Windows 10 Installation Instructions. Primavera P6. Installation Instructions. For Windows 10 Users

PASSPORTAL PLUGIN DOCUMENTATION

Appendix B. Install Microsoft Personal Web Server

Microsoft Robocopy GUI Users Guide

Module 3: Working with C/C++

Script.byu.edu SharePoint Instructions

Remote Deposit Capture Mac Installation Guide. Enterprise Source Capture

Load testing with WAPT: Quick Start Guide

Release Notes Polycom Global Management System Version

Lab 2 Building on Linux

Transcription:

Code::Blocks on Windows Installation Guide using Msys October 10, 2018 This is with Windows 7 Professional 64 bit, with the variations for 32 bit given as alternatives. This approach uses Msys2. Msys2 is a software distribution and building platform for Windows. This isn t exactly simple, but it does simplify the task of getting the toolchains. This won t work on Windows XP. Note: Msys2 is UNIX-like, in that it is case sensitive and sometimes requires exact spacing. In the following, some things have to be entered exactly as they appear. If you have already installed LLVM, uninstall it. Go to http://www.msys2.org. There are two choices at the top of the page; pick the 32 bit or 64 bit version as appropriate for your system. Run the installer. It should open a command-type window for Msys. On the msys2 page above, there are instructions that walk you through a sequence of steps. Accept the default locations. Step 5 seemed to get stuck; after a minute, I closed the page, restarted Msys from the Start menu, then moved to step 6. This installed around 58 packages. Once that is complete, go to https://github.com/msys2/msys2/wiki/using-packages for the manual. In the Msys window we can search for packages at the $ prompt, by typing pacman Ss clang Here s what I got: The one we want is the sixth entry, the clang package for x86_64. (for 32 bit, the first one, for i686) Copy and paste doesn t seem to work here. At the prompt, type pacman S mingw-w64-x86_64-clang (32 bit: pacman S mingw-w64-i686-clang ) Code::Blocks and Clang for Windows Page 1

Here s what I got: Enter y to proceed with the installation. I got another 18 packages. That should install clang in the c:\msys64 directory (32 bit: msys32 ) You can verify that you have it by looking at the contents of C:\msys64\mingw64\bin. (32 bit: msys32\mingw32\bin ) Next, install Code::Blocks from http://www.codeblocks.org/downloads/binaries. I used codeblocks- 17.12mingw-setup.exe. Then, configure Code::Blocks. First, start Code::Blocks and follow these instructions (from Dr. Beck at http://borax.truman.edu/180/codeblocks_settings.txt) The following settings should be sufficient to ensure that a local copy of Code::Blocks that you install on your own computer has the configuration needed to complete assignments for CS180 at Truman for fall 2018. Last updated: 24 August 2018 Code::Blocks and Clang for Windows Page 2

Settings -> Editor... -> General settings: Use TAB character: make sure it's unchecked TAB indents: checked TAB size in spaces: 2 Settings -> Editor... -> Margins and caret Right margin hint: Visible line Hint column: 78 Settings -> Compiler... -> Global compiler settings Selected compiler: LLVM Clang Compiler Then click the Set as Default button Compiler settings -> Compiler Flags Enable all warnings -Weverything: checked Error on language extensions -pedantic-errors: checked Have clang++ follow the C++11... -std=c++11: checked Compiler settings -> Other compiler options in the text box, enter the following, EXACTLY: -Wno-c++98-compat In addition, make these settings: Under Toolchain executables, put the correct path to the Compiler s installation directory. That is C:\msys64\mingw64 (32 bit: C:\msys32\mingw32 ) Then, from the file menu of Code::Blocks, click Save Everything Code::Blocks and Clang for Windows Page 3

Then close Code::Blocks. Reopen it and verify that the settings are correct. Then, type in the code shown in the screen shot above, and try building the project (which compiles main.cpp), making sure there are no errors, and run the program. The output should look like this: Code::Blocks and Clang for Windows Page 4

Code::Blocks and Clang for Windows Page 5