Adding CPP new to Beaglebone black

Angelo Fraietta newsgroups at
Tue Oct 6 03:31:47 UTC 2015


I am trying to call some C++ code from my C module using extern C.

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

extern "C" void createNewClass()
    // uncomment below and will crash program when it runs
    //newClass *class_ptr = new  newClass();

Has anyone tested c++ code with operator new on Beaglebone black?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list