-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATHandler.cpp malloc undefined #10352
Comments
cc @ARMmbed/mbed-os-wan |
@wajahat-ublox Interesting. It shouldn't matter how you allocate memory. Malloc is just as fine as new although there morphology is different. Are you sure you are not running out of memory at the point you twiddle the traces on ? May I ask the name and specs of the board you are using ? |
Please share your error log as well. |
@hasnainvirk I don't think i am running out of memory because i am talking about compilation error while building with traces enabled.
|
@wajahat-ublox Alright. Thanks, one way to fix it would be to add stdlib.h explicitly in ATHandler.cpp. But I like your approach. Let's use new instead. |
Description
I am getting build errors if cellular traces are enabled. The error points to this line. Wouldn't it be better to use new/delete instead of malloc free as we are in .cpp?
Issue request type
The text was updated successfully, but these errors were encountered: