# Error: conflicting types for

**URL:** <https://www.ruby-forum.com/t/error-conflicting-types-for/120629>\
**Category:** Ruby\
**Created:** [November 19, 2007, 11:50am UTC](https://www.ruby-forum.com/t/error-conflicting-types-for/120629 "2007-11-19T11:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 19, 2007, 11:50am UTC](https://www.ruby-forum.com/t/error-conflicting-types-for/120629/1 "2007-11-19T11:50:29Z")

</div>

hey,

I dunno why the Compiler gives me " error: conflicting types for  
‘rb\_mod\_findm’ " and " error: previous implicit declaration of  
‘rb\_mod\_findm’ was here"

My code:

VALUE rb\_mod\_cwrap(VALUE some, VALUE somea, VALUE someb, VALUE somec,  
VALUE somed, VALUE somee)  
{

rb\_mod\_findm(someb,somee);  
}

static void  
rb\_mod\_findm(VALUE someb, VALUE somee)  
{  
printf(“worked”);  
}

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 19, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/error-conflicting-types-for/120629/2 "2007-11-19T12:08:44Z")

</div>

solved the problem by myself:

the called method (rb\_mod\_findm) should be put above the method  
rb\_mod\_wrap

The call to a function which hasn’t been defined is sometimes being  
thought  
of returning an int and later it complains to define it to return a  
void.

From: [http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1133377455](http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1133377455)

----- Original Message -----  
From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: “ruby-talk ML” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Monday, November 19, 2007 11:49 AM  
Subject: error: conflicting types for …

hey,

I dunno why the Compiler gives me " error: conflicting types for  
‘rb\_mod\_findm’ " and " error: previous implicit declaration of  
‘rb\_mod\_findm’ was here"

My code:

VALUE rb\_mod\_cwrap(VALUE some, VALUE somea, VALUE someb, VALUE somec,  
VALUE  
somed, VALUE somee)  
{

rb\_mod\_findm(someb,somee);  
}

static void  
rb\_mod\_findm(VALUE someb, VALUE somee)  
{  
printf(“worked”);  
}
