Skip Menu |

This queue is for tickets about the Inline-CPP CPAN distribution.

Report information
The Basics
Id: 21868
Status: rejected
Worked: 10 min
Priority: 0/
Queue: Inline-CPP

People
Owner: davido [...] cpan.org
Requestors: artem [...] bizlink.ru
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.25
Fixed in: (no value)



Subject: char const* - is not supported
The following code works: 8<---------------------------->8 use Inline CPP => <<'END'; char* test() { return "Proverka"; } END sub main { return test(); } 1; 8<---------------------------->8 But the following valid C++ code doesn't: 8<---------------------------->8 use Inline CPP => <<'END'; char const* test() { return "Proverka"; } END sub main { return test(); } 1; 8<---------------------------->8 It fails with "Can't locate auto/.../test.al in @INC"
The same issue exists for Inline::C, and is actually related to what data types are handled in the ExtUtils::MakeMaker 'typemap' file. Not all possible combinations of parameters or return types exist in the ExtUtils::MakeMaker "typemap" file. But as documented in the Inline::C docs, you may supply your own custom typemap to deal with those conversions not already covered with your default 'typemap'.