# Ruby and sarl3

**URL:** <https://www.ruby-forum.com/t/ruby-and-sarl3/182968>\
**Category:** Ruby\
**Created:** [February 5, 2010, 11:01am UTC](https://www.ruby-forum.com/t/ruby-and-sarl3/182968 "2010-02-05T11:01:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![czar82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/97f17d/32.png) [@czar82](https://www.ruby-forum.com/u/czar82)\
**Post date:** [February 5, 2010, 11:01am UTC](https://www.ruby-forum.com/t/ruby-and-sarl3/182968/1 "2010-02-05T11:01:40Z")

</div>

I would like to use sarl3  
[Griff - + Compiling Sarl3](http://griff.sourceforge.net/sarl3_compiling.html) for my degree thesis,  
but i had some problem in installing it. I’m using arch linux, i  
installed all the required package, but i get some error with ruby (i  
tried with ruby 1.8 and 1.9, but the error is still there).

first the “make” had some problem to find the ruby.h so I set the  
ruby/build\_deps.mak with the correct path for ruby.

the next problem i had:  
(the \<?\> are \< ’ \>)

In file included from sarl\_string\_table.cpp:2:  
sarl\_bit\_set.h:23: error: variable or field ?sarl\_finalize\_bit\_set?  
declared void  
sarl\_bit\_set.h:23: error: ?GC\_PTR? was not declared in this scope  
sarl\_bit\_set.h:23: error: ?GC\_PTR? was not declared in this scope  
make[1]: \*\*\* [sarl\_string\_table.o] Error 1  
make[1]: Leaving directory `/home/ivan/workspace/sarl3-0.9’  
make: \*\*\* [build] Error 2

i solved it editing my gc.h file, with this:

#ifndef GC\_PTR  
#define GC\_PTR void\*  
#endif

and the previous error was solved, but now i get a new error about ruby:

sarl\_rb\_get\_object.h:7: error: ?VALUE? does not name a type  
sarl\_rb\_get\_object.h:8: error: variable or field ?sarl\_set\_ruby\_object?  
declared void  
sarl\_rb\_get\_object.h:8: error: ?VALUE? was not declared in this scope  
sarl\_rb\_get\_object.h:8: error: expected primary-expression before ?void?  
sarl\_rb\_get\_object.cpp:19: error: ?VALUE? was not declared in this scope  
sarl\_rb\_get\_object.cpp:20: error: ?VALUE? was not declared in this scope  
sarl\_rb\_get\_object.cpp:20: error: template argument 2 is invalid  
sarl\_rb\_get\_object.cpp:20: error: template argument 1 is invalid  
sarl\_rb\_get\_object.cpp:21: error: template argument 2 is invalid  
sarl\_rb\_get\_object.cpp:21: error: template argument 5 is invalid  
sarl\_rb\_get\_object.cpp:21: error: invalid type in declaration before ?;?  
token  
sarl\_rb\_get\_object.cpp: In function ?void sarl\_free\_ruby\_object(void\*)?:  
sarl\_rb\_get\_object.cpp:28: error: request for member ?erase? in  
?global\_ptr\_map?, which is of non-class type ?SarlRubyPtrMap?  
sarl\_rb\_get\_object.cpp: At global scope:  
sarl\_rb\_get\_object.cpp:31: error: ?VALUE? does not name a type  
sarl\_rb\_get\_object.cpp: In function ?int sarl\_exists\_ruby\_object(void\*)  
?:  
sarl\_rb\_get\_object.cpp:54: error: expected initializer before ?it?  
sarl\_rb\_get\_object.cpp:55: error: ?it? was not declared in this scope  
sarl\_rb\_get\_object.cpp:55: error: request for member ?end? in  
?global\_ptr\_map?, which is of non-class type ?SarlRubyPtrMap?  
sarl\_rb\_get\_object.cpp: At global scope:  
sarl\_rb\_get\_object.cpp:59: error: variable or field  
?sarl\_set\_ruby\_object? declared void  
sarl\_rb\_get\_object.cpp:59: error: ?VALUE? was not declared in this scope  
sarl\_rb\_get\_object.cpp:59: error: expected primary-expression before  
?void?  
make[2]: \*\*\* [sarl\_rb\_get\_object.o] Error 1  
make[2]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby' make[1]: *** [build] Error 2 make[1]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby’  
make: \*\*\* [build] Error 2

so what shell i do? 😑

thanks,  
Ivan

---

<div class="post-metadata">

**Author:** ![czar82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/97f17d/32.png) [@czar82](https://www.ruby-forum.com/u/czar82)\
**Post date:** [February 5, 2010, 11:14am UTC](https://www.ruby-forum.com/t/ruby-and-sarl3/182968/2 "2010-02-05T11:14:41Z")

</div>

Azembo Tobalok wrote:

> I would like to use sarl3  
> Hi,  
> I don’t know sarl, but if you only need a graph library, RGL  
> ([http://rgl.rubyforge.org](http://rgl.rubyforge.org)) might be helpfull, too

regards  
ralf
