Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Does Inline::CPP module works with VS 2008(vc 9.0)

by rohn (Initiate)
on Sep 16, 2009 at 10:17 UTC ( #795554=perlquestion: print w/replies, xml ) Need Help??

rohn has asked for the wisdom of the Perl Monks concerning the following question:

Hello friends, I have loaded Strawberry perl on my machine.

I wanted to run a basic program

#!perl use Inline CPP => <<'END'; use warnings; int doodle() { } class Foo { public: Foo(); ~Foo(); int get_data() { return data; } void set_data(int a) { data = a; } private: int data; }; Foo::Foo() { cout << "creating a Foo()" << endl; } Foo::~Foo() { cout << "deleting a Foo()" << endl; } END

The Error faced:

Can't find string terminator "END" anywhere before EOF at inline.pl line 2.

I have also seen in many articles that Inline CPP does not work with VS 2008 (vc 9) is this correct ?.

Replies are listed 'Best First'.
Re: Does Inline::CPP module works with VS 2008(vc 9.0)
by almut (Canon) on Sep 16, 2009 at 10:34 UTC

    You seem to have a space character after the END ...

    From perlop:

    <<EOF (...) The terminating string must appear by itself (unquote +d and with no surrounding whitespace) on the terminating line +.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Does Inline::CPP module works with VS 2008(vc 9.0)
by mwah (Hermit) on Sep 16, 2009 at 11:29 UTC

    Aside from the obvious error already pointed out here,
    why do you think you are invoking Visual C++ 9
    w/Strawberry Perl (as you said in your post)

    (according to your Subject:) Does Inline::CPP module work with VS 2008(vc 9.0)

    AFAIK Strawberry Perl will install a seperate MinGW/gcc 3.4.3
    and use this on compilation.

    Regards,

    mwa

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://795554]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2021-05-06 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (77 votes). Check out past polls.

    Notices?