-------- Original Message -------- Subject: [ruby-vpi-help][17035] RE: Installing - va_list problem Date: Mon, 14 Jan 2007 23:14:37 -0500 (EST) From: Suraj Kurapati <[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Derek Graham wrote: > swig_wrap.cin: In function `_wrap_vpi_vprintf': > swig_wrap.cin:5972: incompatible types in assignment > swig_wrap.cin: In function `_wrap_vpi_mcd_vprintf': > swig_wrap.cin:6022: incompatible types in assignment Ah yes, I know exactly what this is. I had a workaround for this problem, which was removed in 14.0.0 because I thought it no longer occurred. I re-introduced the workaround in this tarball. Please test this tarball (run 'rake build' inside) and tell me if it works: http://ruby-vpi.rubyforge.org/ruby-vpi-15.0.1.tgz By the way, here is an explanation of the problem from the pre-14.0.0 documentation: The VPI functions @vpi_vprintf@ and @vpi_mcd_vprintf@ are not made accessible to Ruby. However, this isn't a big problem because you can use Ruby's printf method instead. The reason for this limitation is that some C compilers have trouble with pointers to the va_list type. For these compilers, the second line in the code shown below causes a "type mismatch" error. <code lang="c"> void foo(va_list ap) { va_list *p = ≈ } </code>