Adding CPP new to Beaglebone black
Angelo Fraietta
newsgroups at smartcontroller.com.au
Tue Oct 6 03:31:47 UTC 2015
Greetings
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?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20151006/c67cf4d1/attachment.html>
More information about the users
mailing list