Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > C++ sources in ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 70 of 148
Post > Topic >>

C++ sources in a Modula 3 project

by Henning Thielemann <iakd0@[EMAIL PROTECTED] > Nov 18, 2003 at 04:29 PM

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?




 1 Posts in Topic:
C++ sources in a Modula 3 project
Henning Thielemann <ia  2003-11-18 16:29:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:12:15 CDT 2008.