|
From: Alex F. <al...@pr...> - 2006-04-15 11:25:19
|
Hi
We're trying to use typemaps.i to map *INPUT etc parameters in WxRuby.
However, when I add %include "typemaps.i" to our interface file, the compile
fails with a lot of errors as below. These come from "rubyio.h", included by
SWIG's "ruby/file.i" file.
When typemaps.i is used with the main (non-included) parts only, it compiles
fine and *INPUT etc parameters can be mapped as described.
Thanks for any help
alex
g++ -c -I/usr/local/lib/wx/include/mac-unicode-release-static-2.6
-I/usr/local/include/wx-2.6 -D__WXMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-DNO_GCC_PRAGMA -O2 -pipe -fno-common -x objective-c++ -I
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/bin -I
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib -I
/Applications/Emacs.app/Contents/Resources/lib/ruby/site_ruby -I
/usr/local/lib/ruby/site_ruby/1.8 -I
/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin7.9.0 -I
/usr/local/lib/ruby/site_ruby -I /usr/local/lib/ruby/1.8 -I
/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0 -I . -o obj/App.o src/App.cpp
In file included from src/App.cpp:1600:
/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0/rubyio.h:30: error: parse error
before `(' token
In file included from src/App.cpp:1600:
/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0/rubyio.h:30:46: pasting "L" and "("
does not give a valid preprocessing token
/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0/rubyio.h:64: error: syntax error
before `(' token
/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0/rubyio.h:64:44: pasting "L" and "("
does not give a valid preprocessing token
/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0/rubyio.h:65: error: syntax error
before `(' token
|