From: Martin Hansen Date: 2011-11-08T17:04:21+09:00 Subject: Compiling Ruby Inline C code - resolving errors I am trying to get this Ruby inline C code http://pastie.org/2825882 to work. The code works in vanilla C, but here I get errors and warnings. What causes this error? ./backtrack_inline.rb:67: error: lvalue required as unary '&' operand Also, why do I get the following error? ./backtrack_inline.rb:73: error: too few arguments to function 'backtrack' Inspecting the resulting C code ( http://pastie.org/2826036) I fail to see anything wrong with the arguments. But I do also get the following warnings: ./backtrack_inline.rb:73: warning: passing argument 1 of 'backtrack' makes integer from pointer without a cast ./backtrack_inline.rb:73: warning: passing argument 2 of 'backtrack' makes integer from pointer without a cast ./backtrack_inline.rb:73: warning: passing argument 3 of 'backtrack' makes integer from pointer without a cast Cheers, Martin -- Posted via http://www.ruby-forum.com/.