From: ara.t.howard@... Date: 2007-03-29T12:22:13+09:00 Subject: Re: mkmf extconf include path On Thu, 29 Mar 2007, Christophe Mckeon wrote: > Daniel Berger wrote: >> On Mar 28, 7:49 pm, Christophe Mckeon wrote: >>> hi, >>> >>> how do you set the include file path for your extension? can it be done >>> using mkmf? right now i'm going #include "../drp.h" which is kind of >>> ugly. >> >> find_header('drp.h', '..') >> >> Regards, >> >> Dan > > thanks but that doesn't work, i still get errors > > Building native extensions. This could take a while... > drp_ext_rule_engine.c:20:17: error: drp.h: No such file or directory > > this is what my extconf looks like: > > require 'mkmf' > > have_library 'c', 'main' > find_header 'drp.h', '..' > create_makefile 'drp_ext_rule_engine' > > and in my C file i have: > > #include "drp.h" > > but if i have: > > #include "../drp.h" > > either with or without the find_header it works fine. i am > building through the extensions attribute of gemspec, not by hand. you mean you are creating an extonf.rb? -a -- be kind whenever possible... it is always possible. - the dalai lama