Table of Contents
EWG comes with the following examples
simple -- A minimal example. This is a very good example to start with
callback -- Demonstrates the use of C callbacks from within Eiffel
Berkeley DB -- Proof of concept wrapper for Berkely DB
GTK 2.x -- Wrapper for GTK 2.0
SDL -- Proof of concept wrapper for SDL
SDL -- Proof of concept wrapper for OpenGL
For an up-to-date list of EWG based wrapper libraries please visit the EWG Homepage. Note that all examples compile on all platforms with all compilers.
It is worth mentioning that the GTK wrapper is already pretty much advanced (although by for not complete yet). By using an inheritance trick GTK-EWG supports agents (which is a powerful concept especially for GUIs), but has fall-back support for command classes on Visual Eiffel (which doesn't support agents yet).
The following is a list of requirements that need to be fullfilled in order to build library wrappers with EWG and compile applications using those library wrappers. Please note that these are not necessarily the same as the requirements needed to compile EWG (the tool) itself.
Library
GOBO (3.3) -- (you just need geant and gexace)
Compiler
Smart Eiffel (1.1)
ISE Eiffel (5.4)
Visual Eiffel (4.1)
Platform
Everything supported by above requirements
Please note that the code generated by EWG does not require GOBO. The examples supplied with EWG need the GOBO build tools though.
Support for Visual Eiffel on Windows is currently not fully supported, because I only have the free version of Visual Eiffel. This version refuses to compile the bigger examples like OpenGL and GTK 2.x, thus I cannot test them.
The examples provided with EWG have been tested using the following combinations:
se / gcc
ise / gcc
se / msc
se / lcc
ise / msc
ve / gcc
ve / msc
Other combinations might or might not work. If you test another combination I would be happy to hear from your results.