I'm curious if someone has run into this before:
I'm using CMake to make some SWIG .i files. I then use SWIG on those
files, and it tells me that I have a syntax error. (I don't know SWIG
syntax that well, but I'm learning.) I thought I'd ask all of you if this
is something you were familiar with.
Details:
There are several .cpp files in the C++ library I'm trying to translate to
Perl, Python, etc. (Doesn't matter what language I specify--the same
error comes up.) For example, I might tell it:
$ swig -c++ -perl5 TextTools.cpp.i
and get this error:
TextTools.cpp.i:49: Error: Syntax error in input(1).
The .i file made from each .cpp file differs, of course. But the syntax
error is always here:
namespace std __attribute__ ((__visibility__ ("default"))) {
# 245 "/usr/include/c++/4.3/i486-linux-gnu/bits/c++config.h" 3
}
SWIG lists the first line (namespace std ...) as being the one with the
error. (So in my above example, that's line 49.)
Does anybody have an idea?
Thanks,
Adam
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake