c++ managed code
<pre><code>1 #include"unmanaged.h"
2 #include"stdafx.h"
3 using namespace std;
4 _gc class Mclass
5 {
6 private:
7 string Mx;
8 cppclass * obj;
9 public:
10 Mclass();
11 ~Mclass();
12  string native();
13 };
</code></pre>

<p>when buliding this throws</p>

<p>error C4430: missing type specifier - int assumed.</p>

<p>Note: C++ does not support default-int and</p>

<p>error C2143: syntax error : missing ';' before '</p>

<p>the content of unmanged.h is</p>

<pre><code>#include"stdafx.h"
#include&lt;string&gt;
#include&lt;iostream&gt;
using namespace std;
class cppclass
{
private:
string x;
public:
cppclass();
~cppclass();
string native();
};
</code></pre>
