ruby talk wrote: > Hello, > I am looking for an example/tutorial on extending ruby with C using > windows. > I add the using windows because I was to extend pcap ruby to windows > (one > day), and it is what i currently have installed. I read the pickaxe book > and > the example does not work for me. I think my problem with pickaxe > example is > the location of my file in the ruby dir. I was getting and error with > the > value statment so i removed all the code excpet the return self in the > functions. and i get > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__': > C:\ruby\lib\ruby\Test.rb:7: void value expression (SyntaxError) > return self; > ^ > C:\ruby\lib\ruby\Test.rb:7: odd number list for Hash > return self; > ^ > C:\ruby\lib\ruby\Test.rb:7: syntax error > return self; > ^ > C:\ruby\lib\ruby\Test.rb:8: syntax error from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require' > from testtest.rb:1 Is return self; in the C code? (The C level does not have an implicit self.) Does everything compile OK with extconf.rb? If you post the code, we can troubleshoot. > I read this > http://www.onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html and > it is > in linux, make does not work. > > Thank you for your time. > Becker E -- Posted via http://www.ruby-forum.com/.