> Another thing, I would really need somehting like the 'CCFLAGS' option in
> Inline::CPP for adding another include directory. Or have I just missed
> that feature?
>
> The workaround for this was to patch the Config.pm file's CC flags value. A
> non-elegant solution I would say :)

Hi Johan,

CPP doesn't expose the CCFLAGS option, but it provides the 'INC' shortcut
that XS provides. You can specify extra include dirs by saying something
like this:

use Inline 'c++' => 'DATA' => INC => '-Ic:\\my\\dir';

If you do need to pass extra parameters to the compiler (and you do on
Windows), you can fake it by sticking them in the 'INC' parameter, or wait
for the new release of Inline::CPP, which will expose a 'CCFLAGS' option
for you. The new release will also fix the -TP flag issue for you.

(Note for people unfamiliar with C++ in windows: Microsoft's compiler
determines language by the file extension (.c or .cpp). xsubpp always
writes a .c file, so the compiler assumes it's a C file, causing lots of
errors for Inline::CPP. The solution is to pass the extra flag '-TP' which
forces a C++ compile.)

Neil

-- 
Vote for Your Favorite Perl & Python Programming
Accomplishments in the first Active Awards!

>> http://www.ActiveState.com/Awards <<


Reply via email to