unrar on cygwin

a simple example building files for windows:
building unrar for cygwin.
The following wont work with g++ version >=4 (which is default).
You will need make and g++-3.
download source from http://www.rarlab.com/rar_add.htm
now edit makefile.unix
just before the line

# Linux using GCC
insert the line
CXX=g++-3
this will override the g++ version
now type
make -f  makefile.unix
then to install
make -f  makefile.unix install