Hi there.
I have created a blank project in MS Visual C++ 2010.
New file, main.cpp.
Contents of the file is just:
#include <ruby.h>
I just get a stream of errors.
Given some of the errors are "C++ does not support", I tried instead running as a .c file and I get pretty much the same.
Any ideas?
I have created a blank project in MS Visual C++ 2010.
New file, main.cpp.
Contents of the file is just:
#include <ruby.h>
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(87): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(87): error C2146: syntax error : missing ')' before identifier 'obj'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(87): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2146: syntax error : missing ')' before identifier 'obj'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2182: 'rb_enc_set_index' : illegal use of type 'void'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(90): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(91): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(92): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(93): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(93): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(93): error C2078: too many initializers
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(94): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(94): error C2065: 'VALUE' : undeclared identifier
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(94): error C2078: too many initializers
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C2146: syntax error : missing ';' before identifier 'rb_enc_associate_index'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C2062: type 'int' unexpected
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2146: syntax error : missing ';' before identifier 'rb_enc_associate'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2146: syntax error : missing ')' before identifier 'dst'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2182: 'rb_enc_copy' : illegal use of type 'void'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(99): error C2146: syntax error : missing ';' before identifier 'rb_enc_str_new'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(99): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(100): error C2146: syntax error : missing ';' before identifier 'rb_enc_reg_new'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(100): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(101): error C2146: syntax error : missing ';' before identifier 'rb_enc_sprintf'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(101): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(101): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(101): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(102): error C2146: syntax error : missing ';' before identifier 'rb_enc_vsprintf'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(102): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(102): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(102): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(105): error C2146: syntax error : missing ';' before identifier 'rb_obj_encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(105): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(105): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2146: syntax error : missing ';' before identifier 'rb_enc_str_buf_cat'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2146: syntax error : missing ')' before identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(107): error C2146: syntax error : missing ';' before identifier 'rb_enc_uint_chr'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(107): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(109): error C2146: syntax error : missing ';' before identifier 'rb_external_str_new_with_enc'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(109): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2146: syntax error : missing ';' before identifier 'rb_str_export_to_enc'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2146: syntax error : missing ';' before identifier 'rb_str_conv_enc'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2146: syntax error : missing ')' before identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2146: syntax error : missing ';' before identifier 'rb_str_conv_enc_opts'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2146: syntax error : missing ')' before identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(186): error C2146: syntax error : missing ';' before identifier 'rb_intern3'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(186): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(186): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(187): error C2146: syntax error : missing ';' before identifier 'rb_interned_id_p'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(187): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(187): error C2086: 'int ID' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(186) : see declaration of 'ID'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(187): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(194): error C2146: syntax error : missing ';' before identifier 'rb_enc_from_encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(194): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(194): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(194): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(208): error C2146: syntax error : missing ';' before identifier 'rb_enc_default_external'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(208): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(208): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(208): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(209): error C2146: syntax error : missing ';' before identifier 'rb_enc_default_internal'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(209): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(209): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(209): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(210): error C2146: syntax error : missing ')' before identifier 'encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(210): error C2182: 'rb_enc_set_default_external' : illegal use of type 'void'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(210): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(211): error C2146: syntax error : missing ')' before identifier 'encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(211): error C2182: 'rb_enc_set_default_internal' : illegal use of type 'void'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(211): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2146: syntax error : missing ';' before identifier 'rb_locale_charmap'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2146: syntax error : missing ')' before identifier 'klass'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C2146: syntax error : missing ';' before identifier 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C2146: syntax error : missing ';' before identifier 'rb_cEncoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): error C2146: syntax error : missing ';' before identifier 'rb_str_encode'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): error C2146: syntax error : missing ')' before identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(247): error C2146: syntax error : missing ')' before identifier 'opthash'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(247): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(248): error C2146: syntax error : missing ')' before identifier 'opthash'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(248): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(251): error C2061: syntax error : identifier 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(266): error C2146: syntax error : missing ';' before identifier 'rb_econv_open_exc'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(266): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(266): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(266): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(279): error C2146: syntax error : missing ';' before identifier 'rb_econv_make_exception'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(279): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(279): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(279): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(288): error C2146: syntax error : missing ';' before identifier 'rb_econv_str_convert'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(288): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(288): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(288): error C2061: syntax error : identifier 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(288): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(289): error C2146: syntax error : missing ';' before identifier 'rb_econv_substr_convert'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(289): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(289): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(289): error C2061: syntax error : identifier 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(289): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(290): error C2146: syntax error : missing ';' before identifier 'rb_econv_str_append'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(290): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(290): error C2061: syntax error : identifier 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(291): error C2146: syntax error : missing ';' before identifier 'rb_econv_substr_append'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(291): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(291): error C2086: 'int VALUE' : redefinition
1> c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95) : see declaration of 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(291): error C2061: syntax error : identifier 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(291): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\ruby193\include\ruby-1.9.1\ruby\io.h(57): error C2146: syntax error : missing ';' before identifier 'pid'
1>c:\ruby193\include\ruby-1.9.1\ruby\io.h(57): fatal error C1003: error count exceeds 100; stopping compilation
I just get a stream of errors.
Given some of the errors are "C++ does not support", I tried instead running as a .c file and I get pretty much the same.
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(87): error C2146: syntax error : missing ')' before identifier 'obj'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(87): error C2061: syntax error : identifier 'obj'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(87): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(87): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2146: syntax error : missing ')' before identifier 'obj'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2061: syntax error : identifier 'obj'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2059: syntax error : ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(88): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C2061: syntax error : identifier 'rb_enc_associate_index'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C2143: syntax error : missing ')' before ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(95): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2061: syntax error : identifier 'rb_enc_associate'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2143: syntax error : missing ')' before ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(96): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2146: syntax error : missing ')' before identifier 'dst'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2061: syntax error : identifier 'dst'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2059: syntax error : ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(97): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(99): error C2061: syntax error : identifier 'rb_enc_str_new'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(99): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(99): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(100): error C2061: syntax error : identifier 'rb_enc_reg_new'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(100): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(100): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(101): error C2061: syntax error : identifier 'rb_enc_sprintf'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(101): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(101): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(102): error C2061: syntax error : identifier 'rb_enc_vsprintf'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(102): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(102): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(105): error C2061: syntax error : identifier 'rb_obj_encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(105): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2061: syntax error : identifier 'rb_enc_str_buf_cat'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2146: syntax error : missing ')' before identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2061: syntax error : identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2059: syntax error : ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(106): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(107): error C2061: syntax error : identifier 'rb_enc_uint_chr'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(107): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(107): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(109): error C2061: syntax error : identifier 'rb_external_str_new_with_enc'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(109): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(109): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2061: syntax error : identifier 'rb_str_export_to_enc'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2143: syntax error : missing ')' before ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(110): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2061: syntax error : identifier 'rb_str_conv_enc'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2146: syntax error : missing ')' before identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2061: syntax error : identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2059: syntax error : ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(111): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2061: syntax error : identifier 'rb_str_conv_enc_opts'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2146: syntax error : missing ')' before identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2061: syntax error : identifier 'str'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2059: syntax error : ','
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(112): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(186): error C2061: syntax error : identifier 'rb_intern3'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(186): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(186): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(187): error C2061: syntax error : identifier 'rb_interned_id_p'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(187): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(187): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(194): error C2061: syntax error : identifier 'rb_enc_from_encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(194): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(194): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(208): error C2061: syntax error : identifier 'rb_enc_default_external'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(208): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(208): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(209): error C2061: syntax error : identifier 'rb_enc_default_internal'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(209): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(209): error C2059: syntax error : 'type'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(210): error C2146: syntax error : missing ')' before identifier 'encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(210): error C2061: syntax error : identifier 'encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(210): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(210): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(211): error C2146: syntax error : missing ')' before identifier 'encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(211): error C2061: syntax error : identifier 'encoding'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(211): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(211): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2061: syntax error : identifier 'rb_locale_charmap'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2146: syntax error : missing ')' before identifier 'klass'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2061: syntax error : identifier 'klass'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(212): error C2059: syntax error : ')'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C2061: syntax error : identifier 'VALUE'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(215): error C2059: syntax error : ';'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(225): error C2054: expected '(' to follow 'inline'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(226): error C2085: 'rb_enc_dummy_p' : not in formal parameter list
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(226): error C2143: syntax error : missing ';' before '{'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): error C2061: syntax error : identifier 'rb_str_encode'
1>c:\ruby193\include\ruby-1.9.1\ruby\encoding.h(244): fatal error C1003: error count exceeds 100; stopping compilation
Any ideas?