From: Josh Steiner Date: 2007-04-25T08:25:07+09:00 Subject: Re: embedding interpreter --- how to load ext's? thanks for the advice. i spent some time looking at the source of the ruby interpreter and it looks like search_required will only load .rb, .so, .o or .dll on a windows machine. the build process only cranks out an .obj and a .lib file. if i rename stringio.obj to stringio.so or stringio.dll it tries to load it and fails with: 193: %1 is not a valid Win32 application. - ./stringio.so this .obj file is built at the same time as the .lib i am using as the embedded interpreter so it isnt a compiler version issue. interestingly, if i copy the stringio.so that i got from the one click installer into my running folder for my embedded ruby i get the same error. but isn't the point of linking the .lib into my exe to have the stringio object available without having to dynamically load the object file? anyone have any ideas for me? apologies if i am being a bit foolish ;) thanks! -Josh Nobuyoshi Nakada wrote: > Hi, > > At Sat, 21 Apr 2007 04:58:04 +0900, > Josh Steiner wrote in [ruby-talk:248581]: > >> ahh, thanks for the reply. That makes sense. I am now linking >> stringio.lib into my executable, but still i get >> >> "no such file to load -- stringio" >> > > You need ext/extinit.obj too, to initialize statically linked > extensions. > > -- ________________________________________________________________ tasty electronic music vittles -- bluevitriol.com the only music blog you need -- playtherecords.com you are the dj. interactive music -- improbableorchestra.com random observations of the bizarre -- vitriolix.com