Skip Menu |

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

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

People
Owner: davido [...] cpan.org
Requestors: johanl [...] cpan.org
Cc:
AdminCc:

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



Subject: My source breaks the xs file (simple fix)
Hi! I encountered a problem with some CPP code of mine. If the last line of the source contains whitespace, I get the error: Didn't find a 'MODULE ... PACKAGE ... PREFIX' line from ExtUtil::ParseXS. It's rex looking for that line starts with /^ to anchor it to the beginning of the line, and my whitespace is messing that up. Somewhat tedious to track down... In your CPP.pm, if you change the line where you write this: MODULE = $module PACKAGE = $pkg $prefix to begin with a newline, this problem goes away. Hope that helps, /J
I'm not able to duplicate the error you're describing, both on Windows or Linux. It's possible that ExtUtils::ParseXS has already been patched so as to resolve the issue. If you (or anyone reading this) still see a problem please provide a test case that exhibits the behavior, and describe the environment under which this occurs.