Hi,
Just wanting to verify that (given that "RUBBISH" is not defined) its an
Inline::C bug that the following script will not compile:
--------------------------------------
### try.pl ###
use warnings;
use Inline C => Config =>
BUILD_NOISY => 1;
use Inline C => <<'EOC';
#ifdef RUBBISH
void foo() {
printf("RUBBISH is defined\n");
}
#else
void bar() {
printf("RUBBISH not defined\n");
}
#endif
EOC
bar();
--------------------------------------
Or is that just the way it is with XS ?
The fatal error I get is, btw:
try_pl_930e.o:try_pl_930e.c:(.text+0x7e): undefined reference to `foo'
Cheers,
Rob