我有這樣的測試代碼: require 'mkmf'
puts have_header("iostream.h")
這個代碼拋出這樣JRuby中的錯誤: checking for iostream.h... RuntimeError: The compiler failed to generate an executable file. You have to install develop
當我嘗試運行的捆綁安裝我看到: To see why this extension failed to compile, please check the mkmf.log which can
be found here:
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/extensions/x86-
mingw32/2.3.0/nio4r-
Ruby擴展 sample ⇒Source code(包括生成文件) 我做一個測試上面的示例, 但是,當我編譯它遇到錯誤! 我做錯了嗎? H:\Ruby\test_ymal\MyTest>make
compiling MyTest.c
In file included from d:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/ruby/define
我試圖做這樣的事情,但我無法理解如何在我的C代碼中使用Ruby內部。 static VALUE func_get_date_object(VALUE self, VALUE vdate){
VALUE rb_date;
VALUE date;
rb_date = rb_funcall(rb_intern("Date"), rb_intern("new"), 0);;
date = rb_f