Eric Hodel <drbrain / segment7.net> 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ñ×ue