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.