Home  |  Linux  | Mysql  | PHP  | XML
From:Sisyphus Date:Tue Sep 30 18:46:30 2008
Subject:Re: gcc 4.3.0 and Inline:CPP
----- Original Message ----- 
From: "Alexander Khizha" <khizhaster@gmail.com>
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 

Navigate in group perl.inline at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants