This is a HowTo for an external Project using CS, Eclipse IDE and MingW32.

Eclipse is, unfortunately, not easy to set up.

Prerequisites:

You have installed Eclipse + CDT Plugin for C/C++ Development

You have installed MingW32+Msys

You have downloaded (and unpacked) CS; and you have installed cs-win32libs package

You have configured and build CS (./configure && jam) in msys' shell

Now start Eclipse and choose File->"New Project".The New Project wizard starts. Choose "C++"=>"Managed Make C++ " and then click "next".Typ a name for the Project and click "finish". In the "Open Associated Perspective" dialog click "yes".You have now a directory with the project name in your eclipse work directory.Copy cs-config from CS dir to this project directory.

For a test also add simple1.cpp and simple1.h from CS/apps/tutorial/simple1 into the project directory,so we have something that actually can be complied (You can delete the two when everything is set up properly.)To make eclipse notice your files, right-click on the Project name in eclipse and choose "Refresh".Now choose "Project->Properties" an navigate to "C/C++ Build".You should see a dialog window "Configuration Settings", where the tab "Tool Settings" should be selected.Select "GCC C++ Compiler"->Miscellanous. Add `../cs-config --cxxflags`to "Other flags" so it reads:-c -fmessage-length=0 `../cs-config --cxxflags`Notice: Use `` and not ' ' -- They have to be backticks and not apostropies (or just use copy & paste ).

Up to now pretty this was much like any other extenal CS Project Environment Setup.

Now select "GCC C++ Linker" (one level up).You habe (under "Expert settings:") the Command line patternThis contains a show-stopper: It has {INPUTS} as the LAST argument. Meeep. Wrong.The G++ linker resolves symbols from "left to right" so will always end with "unresolved symbols" when you list your *.o file last.You must change the Command line pattern so it reads:${COMMAND} ${INPUTS}${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT}

To make eclipse use the MingW32 gcc compiler, I also modified PATH Variable in tab Environment, sub-tab Configuration (Button New).You will also have to add a CRYSTAL Variable there. Note that you have to use MingW32 Syntax for the CRYSTAL variable, as in/C/Crystal/CS

Close the Dialog with "OK".Eclipse should now rebuild your project sucessfully.Congratulations!