Scientific programming

Setting up testing/project environments

by Nikolai V. Shokhirev

Up ABC tutorials

Up: Scientific programming
Previous: Shaman introduction to C++
Next: CppMatLib - Introduction

I recommend to use the free compilers available both on Linux and Windows (with MinGW). This is probably the easiest way for the cross-platform development. Moreover, MSYS allows using the same shell environment on both platforms. The combination of MinGW and MSYS provides a small, self-contained environment that can be loaded onto removable media without leaving entries in the registry or files on the computer [1].

 Here I collected some useful MinGW-related links.

Installation

MinGW - MinGW (Minimalist GNU for Windows) is a native software port of the GNU Compiler Collection (GCC) to Microsoft Windows along with a set of freely distributable import libraries and header files for the Windows API. MinGW allows developers to create native Microsoft Windows applications.

MSYS - MSYS (Minimal SYStem) provides a lightweight Unix-like shell environment including rxvt and a selection of POSIX tools sufficient to enable autoconf scripts to run.
Note: Strictly speaking, this installation is not necessary: you can run the GCC compilers from the Windows cmd shell.

G95 - Free Fortran-95 compiler.
Note 1: Is necessary only for Fortran projects.
Note 2: the g77 compiler can be installed during MinGW installation.

Directory structure

I would suggest this simple structure:

C:/
|
+- MinGW
   | 
   + projects
     |
     +- CppMatLib
     |
     +- MyProject1
     | ...........

 

Visual C++ (VS 2005/2003)

See the references below.

DevC++ (DevCpp)

See the references below.

Borland C++Builder - Free Turbo Explorer Edition

See the references below.

Links

  1. MingW/MSYS overview http://en.wikipedia.org/wiki/MinGW 
  2. MingW/MSYS Links
  3. Introduction to Visual C++ for UNIX Users http://msdn2.microsoft.com/en-us/library/xw1ew2f8.aspx
  4. Creating a Console Program in Microsoft VisualStudio .NET: http://www.juniata.edu/faculty/kruse/implvcpp.htm
  5.  Dev-C++ Tutorial for CSC 161 Students (Maintained by Michael Serrano) http://www.uniqueness-template.com/devcpp/
  6. Setting Up Dev C++ to Work with the ARM GCC Cross-Compiler by Richard A. Roth I.I http://www.bloodshed.net/dev/SetDevCPPArm.pdf
  7. C++Builder Turbo Explorer (http://www.turboexplorer.com/ see also http://www.codegear.com/products/turbo).
Up ABC tutorials

Up: Scientific programming
Previous: Shaman introduction to C++
Next: CppMatLib - Introduction

Home | Resumé |  Shokhirev.com |  Computing |  Links Publications

©Nikolai V. Shokhirev, 2004-2008