From: Paul M. <p.e...@ru...> - 2006-02-14 16:46:28
|
Nitro wrote: >> I sent a reply (but forgot to cc the list), there's another problem, >> swig doesn't like the %module line as is. And btw, gcc sees this is >> c++ code, look at the error messages. Although using g++ instead of >> gcc does result in different libs being linked I think > > > Oh ok, I am sorry! The error messages really state something about > C++, I looked at them yesterday and couldn't find any notion of C++ > being used. I had an error once where SWIG produced C++ code, but gcc > tried to compile it as C and thus the errors which appeared seemed > similar. How does gcc decide it's a C++ file? By the .cxx extension? Yes, I think that's the trick. I was surprised myself, but it does seem to work. But I do always use g++ myself... Paul -- Paul Melis VR Specialist, Center for High-Performance Computing & Visualization, University of Groningen, The Netherlands T: +31 50 363 9298 E: p.e...@ru... W: http://www.rug.nl/rc/hpcv/index |