in reply to Re^2: Does Inline::CPP module works with VS 2008(vc 9.0)
in thread Does Inline::CPP module works with VS 2008(vc 9.0)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Does Inline::CPP module works with VS 2008(vc 9.0)
by rohn (Initiate) on Sep 16, 2009 at 11:47 UTC | |
by mwah (Hermit) on Sep 16, 2009 at 12:08 UTC | |
by rohn (Initiate) on Sep 16, 2009 at 13:04 UTC | |
by Corion (Patriarch) on Sep 16, 2009 at 13:12 UTC | |
by ikegami (Patriarch) on Sep 16, 2009 at 13:17 UTC | |
by syphilis (Archbishop) on Sep 17, 2009 at 07:04 UTC |