<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Unfortunately, here is currently no direct way to interface directly
with C++ code (only C code).&nbsp; This is due to the lack of
standardization of eg: name-mangling between C++ compilers.&nbsp; However,
it is still possible to call C++ code by wrapping the desired functions
in C functions (or rather, functions declared as 'extern "C" ').<br>
<br>
This should be enough documentation to get you started on the
Squeak-to-C part: <br>
<a class="moz-txt-link-freetext" href="http://wiki.squeak.org/squeak/370">http://wiki.squeak.org/squeak/370</a><br>
<br>
Cheers,<br>
Josh<br>
<br>
<br>
<br>
jordi inglada wrote:
<blockquote
 cite="mid:c90dd6a90812010819x2e0ac96aj39d5d9598bed2de0@mail.gmail.com"
 type="cite">Hi all,<br>
  <br>
I am new to Squeak and I would like to know if there is a way to use an
external C++ API from it. I find the language and the environment very
interesting and I would like to benefit from some legacy code.<br>
  <br>
I have been searching on the net for an equivalent of SWIG &lt;<a
 moz-do-not-send="true" href="http://www.swig.org/">http://www.swig.org/</a>&gt;
for Squeak without success.<br>
  <br>
Thanks in advance for your help.<br>
  <br>
Jordi.<br clear="all">
  <br>
-- <br>
Jordi Inglada<br>
  <a moz-do-not-send="true"
 href="http://pixel-remote-sensing.blogspot.com/">http://pixel-remote-sensing.blogspot.com/</a><br>
  <pre wrap="">
<hr size="4" width="90%">

  </pre>
</blockquote>
<br>
</body>
</html>