I would like to organize the C source code as follows:
+ / | |___ + ext | | | |___ + native_extension | | | |___ + lib | | | | | |___ (Source files are kept in here - may contain sub-folders) | | | |___ native_extension.c | |___ native_extension.h | |___ extconf.rb | |___ + lib | | | |___ (Ruby source code) | |___ Rakefile
I had a problem with this installation working correctly using mkmf . Files in native_extension/lib that are included by native_extension.c are completely ignored.
When I create the extension, only native_extension.{h,c} compiles and I get incomplete native_extension.{so,dll} , which gives me character search errors when I try to run it.
How to make this work?
source share