From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-09T22:59:24+09:00 Subject: Re: extern "C" of prep_stdio On Fri, 09 May 2003 23:27:42 +0900, ts wrote: >>>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001@sneakemail.com> writes: > > S> Im doing this in order to make the functions available to C++. > > a static method in C is like a private method in C++, you can't access > it. What a shame.. there is so many nice functions within ruby which I want to use. Should I submit a RCR: removal of static ? The static C functions seems to be visible (nm libruby-static.a)... > S> w = prep_stdio(rb_fdopen(pipes[1], "w"), FMODE_WRITABLE|FMODE_SYNC, rb_cIO); > > Why you dont use IO::pipe ? Long story.. The first thing I tried was IO::pipe. I got much help, but could not figure out how to do it. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/70770 So I decided to give it a shot in C++. -- Simon Strandgaard