When working on the Simple Wrapper Interface Generator (www.swig.org) I
encountered the following problem:
To call C++ object methods I need an "extern C" function that invokes the
C++ object method. If there is some shorter way - tell me. SWIG generates
such C wrapper functions for me in a file like example_wrap.cxx and from
it I can produce an object file
using a C++ compiler. The object file can be linked to the Modula3 part of
the wrapper library with quake's import_obj().
Unfortunately, import_obj() expects the objects file in the "src"
directory instead of the TARGET directory (e.g. LINUXLIBC6). But the
object file _is_ a generated file and heavily depends on the target
platform! I'd more like if example_wrap.cxx is in the "src" directory.
Then quake should start the C++ compiler (is this a good idea?) which
creates the object file in the TARGET directory which can be linked to the
Modula3 library in turn.
How to tell quake to do so?