From: Christophe Mckeon Date: 2007-03-29T11:36:12+09:00 Subject: Re: mkmf extconf include path 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. regards, _c -- Posted via http://www.ruby-forum.com/.