Daniel Harple <dharple / generalconsumption.org> wrote: > What is the output from the printf statement? From C => alias_path : /Users/yvon/work/Ruby/Native/C/doc/Introduction_ANSI_C_html > Try (CFStringRef)StringValuePtr(alias_path) still a seg fault : "-L/opt/local/lib -framework CoreFoundation\ncreating Makefile\n" "gcc -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common -I /System/Library/Frameworks/CoreFoundation.framework/Headers -I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.7.0 -I/opt/local/lib/ruby/1.8/powerpc-darwin8.7.0 -I. -O -pipe -I/opt/local/include -c RAliasFile.c\ncc -dynamic -bundle -undefined suppress -flat_namespace -L/opt/local/lib -framework CoreFoundation -L\"/opt/local/lib\" -o raliasfile.bundle RAliasFile.o -lruby -lpthread -ldl -lobjc \n" /Users/yvon/work/Ruby/Native/C/osx/ralias/compil.rb:31: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0] From C => alias_path : /Users/yvon/work/Ruby/Native/C/doc/Introduction_ANSI_C_html > or CFSTR(StringValuePtr(alias_path)). and here i get a parse error (???) : RAliasFile.c:29: error: parse error before 'rb_string_value_ptr' the line being : CFURLRef url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR(StringValuePtr(alias_path)), 0, NO); -- une bñ×ue