Sisyphus
Tue, 30 Sep 2008 17:47:48 -0700
----- Original Message ----- From: "Alexander Khizha" <[EMAIL PROTECTED]>
To: <inline@perl.org> Sent: Wednesday, October 01, 2008 4:16 AM Subject: gcc 4.3.0 and Inline:CPP
With gcc 4.3.0 (and >) it's unable to use Inline::CPP. It's try to include iostream.h that is not exists. In new versions of GCC all standard files have not .h extension.
I think this is solved by setting STD_IOSTREAM. The following should (hopefully) work fine with gcc-4.3.0 and later:
-----------------------------------------
use warnings;
use Inline CPP => Config =>
STD_IOSTREAM => 1,
BUILD_NOISY => 1;
use Inline CPP => <<'EOC';
void foo() {
printf("Hello World");
}
EOC
foo();
-----------------------------------------
I don't have gcc-4.3.0 or later to check against. Let me know if setting
STD_IOSTREAM does not work.
Cheers,Rob