Problem when passing a VALUE as parameter

Discussion in 'Ruby' started by Magali Mirande, Feb 22, 2008.

  1. Hi,

    I'm new to Ruby and I'm currently working on embedding Ruby-VTK within
    C++.
    Ruby-Vtk is a patch to add on VTK (Visualization ToolKit) to use from
    Ruby.
    I want to get a pointer from an VALUE object with the method
    vtkRubyGetPointerFromObject(VALUE) which is declared in the
    vtkRubyUtil.h file.
    My problem is that when I pass a VALUE to this method, the compiler
    tells me that there's an undefined reference to
    vtkRubyGetPointerFromObject(unsigned long).
    I know that in the ruby.h header file VALUE is declared as an unsigned
    long, but I don't know why it converts the VALUE object during the
    compilation.

    Do you have any idea why I've got this problem ?

    Thanks in advance for your answers.

    Mag
    --
    Posted via http://www.ruby-forum.com/.
     
    Magali Mirande, Feb 22, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mariame
    Replies:
    2
    Views:
    9,813
    maestrothegenius
    Jan 14, 2009
  2. =?Utf-8?B?YmlsbCB0aWU=?=

    passing linkButton value as sql parameter

    =?Utf-8?B?YmlsbCB0aWU=?=, Apr 10, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,644
    Bruno Alexandre
    Apr 10, 2006
  3. sp
    Replies:
    3
    Views:
    570
    Joseph Kesselman
    Feb 7, 2006
  4. Victor Bazarov
    Replies:
    25
    Views:
    1,258
    E. Robert Tisdale
    Mar 23, 2005
  5. moondaddy
    Replies:
    4
    Views:
    622
    moondaddy
    Sep 12, 2007
  6. Mister B
    Replies:
    8
    Views:
    918
    Nick Keighley
    Aug 26, 2010
  7. David Shorthouse
    Replies:
    1
    Views:
    428
    Bob Barrows [MVP]
    Mar 7, 2006
  8. Abdul Mohsin
    Replies:
    1
    Views:
    438
Loading...