From: James Hughes Date: 2009-04-30T09:08:36+09:00 Subject: Re: problems with 'require' in embedded ruby Sorry, forgot to mention: ruby 1.9.1-p0 compiled from source running on Vista. James Hughes wrote: > I'm tinkering with my first C++ app with an embedded Ruby interpreter. > I'm having trouble with pretty much any usage of 'require' that involves > a file not in the same folder as the executable. If I use rb_require, it > blows up. If I do it in the script, it blows up. > > I've checked the $LOAD_PATH variable on both the C++ side and the script > side, and it's reporting the values I expect. The modules I'm requiring > are definitely in the $LOAD_PATH directories. > > I'm getting a memory access error. It's mostly trying to access address > 0x0. Anyone have any inkling of what's going on here? My version of Ruby > wasn't compiled with symbols, so I can't see what's going on once the > code enters the interpreter (I'm not much for wading through > disassembly). -- Posted via http://www.ruby-forum.com/.