newlib cpp test program (thanx to emanuel, tubooboo@ngine.de, www.ngine.de): #include class test { public: test(); ~test(); int cool; char* mystr; }; test::test() { cool=1; mystr = "it works."; return; } test::~test() { return; } int my_main() { test* wow = new test(); printf("%s\n",wow->mystr); printf("%d\n",wow->cool); return(0); } int main() { int returncode=my_main(); return(returncode); }