From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-08-09T14:40:11+09:00 Subject: Re: FOUND was (Re: Init_xxx(with arg ??) in C for ruby ext ???) Eric Hodel wrote: > > void Init_raliasfile() { > > cRAliasFile = rb_define_class("RAliasFile", rb_cObject); > > rb_define_singleton_method(cRAliasFile, "new", > > method_raliasfile_new, 1); > > ^^^ remove this line ^^^ > > You don't need to define new. i get an eror now : RAliasFile.c: In function 'method_alias_path': RAliasFile.c:46: error: request for member 'alias_path' in something not a structure or union then, i think i have to do something like that : typedef struct _raf { int is_alias_file; int is_folder; int is_data_file; char * alias_path; char * orig_path; char * version; } RAliasFile; -- une b�vue