When I download your code, there actually is a trailing space character after the END word. Maybe your text editor is stripping the newline character on the last line or something like that, so consider adding a comment or some other text to the end. The following compiles OK for me (I don't have Inline::C installed, so I won't comment on the actual code):
#!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 # This is a comment placed here in stead of more code
I had to remove the trailing blank after the END, of course.
In reply to Re^3: Does Inline::CPP module works with VS 2008(vc 9.0)
by Corion
in thread Does Inline::CPP module works with VS 2008(vc 9.0)
by rohn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |