Eclipse

 
 
The Eclipse Workbench is an open source platform, designed by IBM and released to the open source community. It is an open, portable, universal tooling platform that provides frameworks, services and tools for building tools.

In essence the workbench provides the tool infrastructure. With this infrastructure in place, the tool builders are able to focus on the actual building of their tools. The workbench has been designed for maximum flexibility to support the development of tools for new technologies that may merge in the future.

Industry leaders Borland, IBM, Merchant, QNX Software Systems, Rational Software, RedHat, SuSE, TogetherSoft, and WebGain formed the initial eclipse.org board of directors and began work on the Eclipse open source project.

More information about The Eclipse Workbench can be found at:
http://www.eclipse.org

Eclipse FAQ can be found at:
http://wiki.eclipse.org/index.php/Eclipse_FAQs

The latest Eclipse version can be downloaded from: http://www.eclipse.org/downloads/

There are hundreds of plugins which you can add to Eclipse, for example plugins for testing, code management, uml, xml, etc. The Eclipse plugins can be found at: http://www.eclipseplugincentral.com/







Setup Eclipse as IDE for Microsoft Visual C++ Toolkit 2003

Information
The Microsoft Visual C++ Toolkit 2003 is a free edition of Microsoft's professional Visual C++ optimizing compiler and standard libraries. This Toolkit does not contain any IDE. This guide describes how to setup Eclipse as an IDE for this Toolkit.

Operating system used
Windows XP Home Edition Version 5.1 SP 2

Software prerequisites
Eclipse version 3.0 or higher
(CDT) C/C++ plugin
Microsoft Visual C++ Toolkit 2003

Procedure
  1. Start Eclipse.

  2. Open the C/C++ perspective, select menu: Window | Open Perspective | Other

    Select C/C++ perspective, step 1

    Select C/C++ and press OK button.

    Select C/C++ perspective, step 2

  3. Right click INSIDE the C/C++ Projects view and select Project.

    Create C/C++ project

  4. Select Standard Make C/C++ Project and press Next button.

    Create Standard make C/C++ Project

  5. Enter a project name, for example: CPP Tutorials and press Finish button.

    Enter project name

  6. Right click the created "CPP Tutorials" project and select New | File.

    Create file

  7. Enter File name: test.cpp and press Finish button.

    Create file test.cpp

  8. Enter the following code in file test.cpp:

    #include <iostream>
    using namespace std;

    int main() {
       cout << "This is a demonstration! \n";
       return 0;
    }


    Enter code in file test.cpp



  9. Create file makefile and enter the following code (follow the same procedure as test.cpp):

    CC = cl.exe /EHsc /MT /c
    LN = link.exe
    EXENAME = test

    all: $(EXENAME).exe
    [tab]@echo ********************************
    [tab]@cmd /c $(EXENAME)
    $(EXENAME).exe: $(EXENAME).obj
    [tab]$(LN) -out:$(EXENAME).exe $(EXENAME).obj
    $(EXENAME).obj: $(EXENAME).cpp
    [tab]$(CC) -Fo$(EXENAME).obj $(EXENAME).cpp
    clean:
    [tab]rm $(EXENAME).exe
    [tab]rm *.obj


    Note 1: [tab] means you MUST put tab and NOT spaces.
    Note 2: cmd /c is needed to display the result in the console window.

    Enter code in file makefile

  10. Right click "CPP Tutorials" project and select "Create Make Target...".

    Create Make Target

  11. Create the make target:

    Target Name: Please Build Me
    Make target: all

    Create Make Target All

    and press Create button.

  12. Create another make target:

    Target Name: Please Clean Up
    Make target: clean

    Create Make Target Clean

    and press Create button.

  13. Double click the make targets.
    If you double click target "Please Build Me", the code is compiled and executed.
    If you double click target "Please Clean Up", the *.obj and *.exe are deleted.

    Double click make targets

    ATTENTION:
    If you get this error message:

    Error launching builder (make -k all )
    (Exec error:Launching failed)


    You probably have no make.exe installed or make.exe is installed but can not be found.

    How to fix this problem:

    • Make sure you have installed Cygwin.
      After you have installed Cygwin, install the g++ and make package.

    • Open DOS window and type:

      make -version

      You should see:

      GNU Make 3.80
      Copyright (C) 2002 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.
      There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


    • If you see something else than the message above, it is possible that more than one make.exe application is installed on your system.
      Search your computer for this file. If you know where each make.exe file is located, change your PATH system environment variable and place the path with the correct make.exe in front.

      For example:

      Change
      PATH=%PATH%;C:\Tools\cygwin\bin
      into
      PATH=C:\Tools\cygwin\bin;%PATH%

      After the System environment variable is changed open a **NEW** DOS window and again type "make -version" and verify if you have the correct make.exe.