On Mon, Sep 3, 2012 at 1:52 AM, Bernhard Brodowsky <[email protected]> wrote:
> Robert Klemme wrote in post #1073887:
>> On Thu, Aug 30, 2012 at 9:34 AM, Bernhard Brodowsky
>> <[email protected]> wrote:
>>
>>> Hi, thanks for your answer. Somehow it didn't compile as C++ code, if I
>>> do the conversions,
>>
>> Well, as long as we do not see the code and / or the error we can't
>> really tell why it did not compile.  I created a test this morning
>> which worked but threw it away.  You do need to compile the catching
>> and conversion code with extern "C" with a C++ compiler though.
>
> I defined a function with two VALUE args and a VALUE return type and I
> wanted this to be a method with one argument (plus the self Argument)
> but I always got this error:
>
> error: invalid conversion from 'VALUE (*)(VALUE, VALUE) {aka long
> unsigned int (*)(long unsigned int, long unsigned int)}' to 'VALUE
> (*)(...) {aka long unsigned int (*)(...)}' [-fpermissive]

As I said, as long as we do not see the code...  I suggest you create
a http://sscce.org/ and post it.

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to