アットウィキロゴ

Ruby

TOP

組み込みRuby

#include "ruby.h"
using namespace std;
 
int _tmain(int argc, _TCHAR* argv[])
{
    ruby_init();
    rb_eval_string("puts 'hello'");
    cin.get();
    return 0;
}
 
<stdafx.h>
#pragma once
#include <iostream>
#pragma comment(lib, "msvcrt-ruby18.lib")
 
最終更新:2008年12月20日 17:53