Thomas Heller ION-TOF GmbH ----- Original Message ----- From: "Thomas Heller" firstname.lastname@example.org To: email@example.com Sent: Friday, June 23, 2000 9:08 AM Subject: Re: [Distutils] Duelling SWIG patches
Greg Ward wrote: [snip]
OS-agnostic, but is C-centric. Is it possible to tell from a SWIG .i file whether it is destined to be C or C++? I can't think of a good
and Michael wrote:
I'm pretty sure that the only way to do this short of parsing the file
run "swig" with no options and then (if it fails) run "swig -c++"
the C++ processing features). This seems more like something you'd want
do during configuration then during the build.
Unfortunately swig does not fail in C-mode on an I-file which is destined for C++: The C-compiler will fail with syntax errors.