# Rb\_gc\_\* function not found

**URL:** <https://www.ruby-forum.com/t/rb-gc-function-not-found/96624>\
**Category:** Ruby\
**Created:** [January 24, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/rb-gc-function-not-found/96624 "2006-01-24T16:54:45Z")\
**Posts on this page:** 1\
**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:** [January 24, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/rb-gc-function-not-found/96624/1 "2006-01-24T16:54:45Z")

</div>

Hi,

I am compiling Maya Ruby plugin on OS X and during the linker stage,  
the linker is unable to find rb\_gc\_enable() and similar functions.

It is able to find the other Ruby function so I think the libraries  
are fine.

I have compiled the code on WindowsXP and it was fine.

I only have difficulty on OS X.

As the libraries naming is different on the two platforms, I don’t  
have a one-to-one comparison.

There is a libruby.dylib file [shipped standard with OSX] and it is  
providing all the other function except those associated with GC.

Anyone familiar with linking with Ruby libraries on OS X?

Specification:  
OS X 10.4.4  
Ruby 1.8.2

I am building under XCode 2.1 and have customise it to use GCC 3.3  
(Alias Maya requires gcc 3.3 for the plugins to work with their  
applications)

I also need to deploy it as a 10.3.9 runtime package for Alias Maya  
to work.

Cheers
