<div dir="ltr">Greetings<div><br></div><div>I am trying to call some C++ code from my C module using extern C.</div><div><br></div><div>The code compiles fine, however, without even calling the function, If I add a call to a new class, the program crashes and reboots. If I comment out the call as per below, program works fine</div><div><br></div><div><div>extern "C" void createNewClass()</div><div>{</div><div>    // uncomment below and will crash program when it runs</div><div>    //newClass *class_ptr = new  newClass();        </div><div>}</div></div><div><br></div><div><br></div><div>Has anyone tested c++ code with operator new on Beaglebone black?</div><div><br></div><div>Thanks</div></div>