On Dec 19, 2011, at 17:24 , Khat Harr wrote: > #include "ruby.h" > #pragma comment (lib, "msvcr90-ruby191.lib") > > int main() { > ruby_init(); > char* options[] = {"", "test.rb"}; > void* node = ruby_options(2, options); > return ruby_run_node(node); > } Ruby's main.c has the following: > ruby_sysinit(&argc, &argv); > { > RUBY_INIT_STACK; > ruby_init(); > return ruby_run_node(ruby_options(argc, argv)); > } so it looks like you're missing RUBY_INIT_STACK and ruby_sysinit. The latter looks like it has special code specific to windows tho I'm not familiar with it.