Issue #9637 has been reported by Kameron Kincade.

----------------------------------------
Bug #9637: File "ruby.h" includes "config.h" which is not in proper location
https://bugs.ruby-lang.org/issues/9637

* Author: Kameron Kincade
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.0.0p451
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
In Ruby 2.0.0p451, I using SWIG to convert some C/C++ code into Ruby. However, when using GCC to compile the C++ code into Ruby and pointing GCC to the "ruby.h" file (i.e. gcc -fPIC -c test_wrap.cxx -IC:\Ruby200-x64\include\ruby-2.0.0), I receive the error...
![](http://i.stack.imgur.com/693cr.png)
I've looked in the folder where ruby.h is contained and there is no config.h file. It is located in the archdir folder.



-- 
http://bugs.ruby-lang.org/