From: "Mr. Sunblade" Date: 2002-06-04T05:49:57+09:00 Subject: Extensions & importing defined constants Hi all, If I have a .h file (let's call it test.h) that contains: #define SOME_VAL 255 ...and my extconf.rb file contains: have_header('test.h') ...and the source file (let's call it test.c) contains: #include "ruby.h" #ifdef HAVE_TEST_H #include #endif ...shouldn't the test.c file now be able to see the SOME_VAL constant? e.g. char buf[SOME_VAL]; In my own testing, it doesn't seem to be able to see it. I'll get "first use this function" errors. Thanks in advance for any help. Regards, Dan