Skip Menu |

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

Report information
The Basics
Id: 89839
Status: resolved
Priority: 0/
Queue: Inline-CPP

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Compile error if final newline is missing
Running the attached file which does not have a final newline fails with the error message Didn't find a 'MODULE ... PACKAGE ... PREFIX' line This is probably caused by putting the MODULE XS keyword into the last line of the cpp source code. In the generated .xs file I see int add(int a, int b) { return a + b; }MODULE = cpp_pl_b0a5 PACKAGE = main Inline::C does not have this problem. Regards, Slaven
Subject: cpp.pl
#!/usr/bin/perl use strict; use Inline 'CPP'; warn add(1,2); __END__ __CPP__ int add(int a, int b) { return a + b; }
Subject: Re: [rt.cpan.org #89839] Compile error if final newline is missing
Date: Tue, 29 Oct 2013 07:59:45 -0600
To: bug-Inline-CPP [...] rt.cpan.org
From: David Oswald <daoswald [...] gmail.com>
Thanks. That's a useful report. I'll look into it within the week. Dave On Tue, Oct 29, 2013 at 3:21 AM, Slaven_Rezic via RT <bug-Inline-CPP@rt.cpan.org> wrote: Show quoted text
> Tue Oct 29 05:21:41 2013: Request 89839 was acted upon. > Transaction: Ticket created by SREZIC > Queue: Inline-CPP > Subject: Compile error if final newline is missing > Broken in: 0.45 > Severity: (no value) > Owner: Nobody > Requestors: SREZIC@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89839 > > > > Running the attached file which does not have a final newline fails with the error message > > Didn't find a 'MODULE ... PACKAGE ... PREFIX' line > > This is probably caused by putting the MODULE XS keyword into the last line of the cpp source code. In the generated .xs file I see > > int add(int a, int b) { > return a + b; > }MODULE = cpp_pl_b0a5 PACKAGE = main > > Inline::C does not have this problem. > > Regards, > Slaven >
-- David Oswald daoswald@gmail.com
This issue should be resolved by Inline::CPP v0.46. If not, please re-open and let me know.
On 2013-10-29 15:00:03, DAVIDO wrote: Show quoted text
> This issue should be resolved by Inline::CPP v0.46. If not, please > re-open and let me know.
Thanks, works fine!